AuthorizeResult:
    | { status: "Consented"; customerId: string; error?: undefined }
    | { status: "Denied"; customerId?: undefined; error?: undefined }
    | { status?: undefined; customerId?: undefined; error: CryptoOnrampError }

Result of Link authorization.

  • Consented: The user consented; includes customerId.
  • Denied: The user denied authorization.
  • Error variant: Contains a Stripe error.

Type declaration

  • { status: "Consented"; customerId: string; error?: undefined }
    • status: "Consented"

      Authorization was consented by the user.

    • customerId: string

      The crypto customer ID associated with the Link user.

    • Optionalerror?: undefined
  • { status: "Denied"; customerId?: undefined; error?: undefined }
    • status: "Denied"

      Authorization was denied by the user.

    • OptionalcustomerId?: undefined
    • Optionalerror?: undefined
  • { status?: undefined; customerId?: undefined; error: CryptoOnrampError }
    • Optionalstatus?: undefined
    • OptionalcustomerId?: undefined
    • error: CryptoOnrampError

      Present if the authorization failed with an error.