AuthorizeResult:
    | { status: "Consented"; customerId: string; error?: undefined }
    | { status: "Denied"; customerId?: undefined; error?: undefined }
    | {
        status?: undefined;
        customerId?: undefined;
        error: StripeError<OnrampError>;
    }

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: StripeError<OnrampError> }
    • Optionalstatus?: undefined
    • OptionalcustomerId?: undefined
    • error: StripeError<OnrampError>

      Present if the authorization failed with an error.