Options to customize the callback handler.


  • CallbackOptions


afterCallback?: AfterCallback
authorizationParams?: Partial<AuthorizationParameters>

This is useful for sending custom query parameters in the body of the code exchange request for use in Actions/Rules.

organization?: string

This is useful to specify instead of NextConfig.organization when your app has multiple organizations, it should match LoginOptions.authorizationParams.

redirectUri?: string

This is useful to specify in addition to BaseConfig.baseURL when your app runs on multiple domains, it should match LoginOptions.authorizationParams.redirect_uri.