-
Notifications
You must be signed in to change notification settings - Fork 5
add Embedded Wallet Auth endpoint for Email OTP challenge #350
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
Merged
DhruvPareek
merged 1 commit into
main
from
04-17-feat_add_post__auth_credentials__id__challenge_to_resend_email_otp
Apr 22, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| type: object | ||
| required: | ||
| - message | ||
| - status | ||
| - code | ||
| properties: | ||
| status: | ||
| type: integer | ||
| enum: | ||
| - 429 | ||
| description: HTTP status code | ||
| code: | ||
| type: string | ||
| description: | | ||
| | Error Code | Description | | ||
| |------------|-------------| | ||
| | RATE_LIMITED | Too many requests in a short window; retry after the interval indicated by the `Retry-After` response header | | ||
| enum: | ||
| - RATE_LIMITED | ||
| message: | ||
| type: string | ||
| description: Error message | ||
| details: | ||
| type: object | ||
| description: Additional error details | ||
| additionalProperties: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| post: | ||
| summary: Resend an authentication credential challenge | ||
| description: > | ||
| Re-issue the challenge for an existing authentication credential. | ||
|
|
||
|
|
||
| For `EMAIL_OTP` credentials, this triggers a new one-time password email to | ||
| the address on file. After the user receives the new OTP, call | ||
| `POST /auth/credentials/{id}/verify` to complete verification and issue a | ||
| session. | ||
| operationId: challengeAuthCredential | ||
| tags: | ||
| - Embedded Wallet Auth | ||
| security: | ||
| - BasicAuth: [] | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| description: >- | ||
| The id of the authentication credential to re-challenge (the `id` field | ||
| of the `AuthMethod` returned from `POST /auth/credentials`). | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| '200': | ||
| description: Challenge re-issued for the authentication credential | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/auth/AuthMethod.yaml | ||
| '400': | ||
| description: Bad request | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/errors/Error400.yaml | ||
| '401': | ||
| description: Unauthorized | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/errors/Error401.yaml | ||
| '404': | ||
| description: Authentication credential not found | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/errors/Error404.yaml | ||
| '429': | ||
| description: >- | ||
| Too many requests. Returned with `RATE_LIMITED` when challenge | ||
| re-issues are requested more frequently than the OTP rate limit | ||
| allows. Clients should back off and retry after the interval | ||
| indicated by the `Retry-After` response header. | ||
| headers: | ||
| Retry-After: | ||
| description: Number of seconds to wait before retrying the request. | ||
| schema: | ||
| type: integer | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/errors/Error429.yaml | ||
| '500': | ||
| description: Internal service error | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/schemas/errors/Error500.yaml | ||
|
pengying marked this conversation as resolved.
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.