-
Notifications
You must be signed in to change notification settings - Fork 126
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 email OTP support #1163
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “graphite-merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
); | ||
// Helper type to ensure that a listener is either defined or explicitly | ||
// omitted for every event type. | ||
type Listeners = { |
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.
@moldy530 I kept forgetting to add listeners for new events I added so I changed this so the type system would help. Style question: do you prefer using undefined
for events where we don't want a listener, or the noop function () => {}
?
In draft mode because we don't have final designs (and also the backend isn't done yet). |
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 introduces support for One-Time Password (OTP) authentication in the account kit. It expands existing types and interfaces, modifies authentication flows, and adds new components for handling OTP verification.
Detailed summary
Session
type to includeotp
.AWAITING_OTP_AUTH
status.assertNever
function to accept additional parameters.authType
in metrics to includeotp
.otp_verify
.OtpParams
type for OTP requests.submitOtpCode
method inAlchemySignerWebClient
.LoadingOtp
andCompletingOtpAuth
components for OTP flow.