core.medplumclient.signinwithexternalauth | Medplum

MedplumClient.signInWithExternalAuth() method

Initiates sign in with an external identity provider.

Signature:

signInWithExternalAuth(authorizeUrl: string, clientId: string, redirectUri: string, baseLogin: BaseLoginRequest, pkceEnabled?: boolean): Promise<void>;

Parameters

Parameter Type Description
authorizeUrl string The external authorization URL.
clientId string The external client ID.
redirectUri string The external identity provider redirect URI.
baseLogin BaseLoginRequest The Medplum login request.
pkceEnabled boolean (Optional) Whether PKCE should be enabled for this external auth request. Defaults to true.

Returns:

Promise