Skip to main content

Interface: AuthorizeUrlOptions

Properties

clientId?

optional clientId: string;

OAuth client id (defaults to DEFAULT_CLIENT_ID = "babelconnect").


codeChallenge

codeChallenge: string;

codeChallengeMethod?

optional codeChallengeMethod: "S256" | "plain";

redirectUri

redirectUri: string;

The registered callback URL the backend redirects to with the code.


scope

scope: string;

OAuth scope (e.g. "*").


serverUrl

serverUrl: string;

babelconnect-server origin (the same one used for gRPC-web); the authorize endpoint lives on the backend behind the same origin.


state?

optional state: string;

Opaque CSRF token echoed back by the backend; verify it on return.