Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/social/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"viem": "^2.28.0"
},
"dependencies": {
"@magic-ext/oauth": "^22.0.3",
"@magic-ext/oauth2": "^13.0.0",
"magic-sdk": "^28.0.3"
},
"type": "module"
Expand Down
6 changes: 3 additions & 3 deletions plugins/social/toSocialValidatorPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OAuthExtension } from "@magic-ext/oauth"
import { OAuthExtension } from "@magic-ext/oauth2"
import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator"
import type {
EntryPointType,
Expand All @@ -20,7 +20,7 @@ export async function isAuthorized({
const isLoggedIn = await magic.user.isLoggedIn()
if (isLoggedIn) return true

const result = await magic.oauth.getRedirectResult()
const result = await magic.oauth2.getRedirectResult()
return result !== null
} catch {}
return false
Expand All @@ -37,7 +37,7 @@ export async function initiateLogin({
}) {
const magic = await getMagic({ projectId })

magic.oauth.loginWithRedirect({
magic.oauth2.loginWithRedirect({
provider: socialProvider,
redirectURI: oauthCallbackUrl ?? window.location.href
})
Expand Down