Skip to content

feat: deliver account recovery notices and pass through the v0.20 recovery routes #13

Closed

Description

@Bccorb

Auth API v0.20 (fells-code/seamless-auth-api#500, @seamless-auth/types 0.31.0) adds owner notices for account recovery that an adapter owning delivery must send. The work matches seamless-auth-server#232 and seamless-auth-go#11.

  • Delivery: handle account_notice_email (to, subject, text, notice, cancelUrl?) and account_notice_sms (to, text, notice, cancelUrl?). cancelUrl carries a credential: send it only to to, never log it.
  • On manifest routes marked notices: true (today POST /recovery/verify):
    • Send external delivery plus x-seamless-auth-delivery-kinds: account_notice_email,account_notice_sms.
    • Deliver every item in the response's deliveries array, and strip it before answering.
    • Only send the header if every listed kind is delivered, because the API counts a returned notice as the owner being told.
  • otp_email / otp_sms may carry purpose: 'account_recovery': word that message as a recovery warning.
  • Pass through 503 recovery_notice_failed from /recovery/verify, and the new access routes GET /recovery/requests and DELETE /recovery/requests/:id.
  • Unknown delivery kinds stay a logged no-op, not a crash.
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