-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add oauth support to react native signer #1273
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd the label graphite-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple small comments, but generally LGTM
site/pages/reference/account-kit/signer/functions/getDefaultScopeAndClaims.mdx
Outdated
Show resolved
Hide resolved
site/pages/reference/account-kit/signer/functions/getOauthNonce.mdx
Outdated
Show resolved
Hide resolved
import { http } from "viem"; | ||
|
||
const client = createSmartAccountClient({ | ||
transport: http("rpc-url"), | ||
chain: sepolia, | ||
...alchemyGasManagerMiddleware("policyId"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odd... this probably shouldn't have changed, I wonder what happened here?
oos for this though
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
This PR focuses on enhancing the OAuth functionality in the
account-kit
library, adding new error handling, utility functions, and improving the overall structure of the codebase for better maintainability and usability.Detailed summary
OAuthProvidersError
andInAppBrowserUnavailableError
for error handling.resolveRelativeUrl
utility function.oauthWithRedirect
andoauthWithPopup
methods inRNSignerClient
.RNAlchemySigner
to exportRNAlchemySignerType
.parseSearchParams
utility function.base64UrlEncode
utility function.addOpenIdIfAbsent
utility function to ensure "openid" scope.getOauthProviderUrl
method inBaseSignerClient
for better OAuth provider handling.MagicLinkAuthScreen
andOTPAuthScreen
to use the new signer instance.OAuthScreen
for OAuth authentication.tsconfig.json
to allow importing TypeScript extensions.