Skip to content

feat: schemas for the v0.20 recovery requests list, verify response and recovery error codes #112

Closed

Description

@Bccorb

Auth API v0.20 (fells-code/seamless-auth-api#500) added shapes that are only declared in the API, so the React SDK (fells-code/seamless-auth-react#211) had to declare them locally:

  • AccountRecoveryRequestSchema ({ id, channel, state, requestedAt, completesAt }) and AccountRecoveryRequestsResponseSchema ({ requests: AccountRecoveryRequest[] }), for GET /recovery/requests.
  • AccountRecoveryVerifyResponseSchema: AccountRecoveryStatusSchema plus optional deliveries: AuthDelivery[].
  • A recovery error code enum: invalid_recovery_code, recovery_notice_failed, account_recovery_disabled, recovery_not_found, recovery_not_ready, enrollment_required.

Then the API re-exports these instead of its local copies (src/schemas/accountRecovery.ts), and the SDK drops its local types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v0.20Targets the v0.20 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions