Skip to main content

core.medplumclient.startgooglelogin

Home > @medplum/core > MedplumClient > startGoogleLogin

MedplumClient.startGoogleLogin() method

Tries to sign in with Google authentication. The response parameter is the result of a Google authentication. See: https://developers.google.com/identity/gsi/web/guides/handle-credential-responses-js-functions

Signature:

startGoogleLogin(loginRequest: GoogleLoginRequest, options?: RequestInit): Promise<LoginAuthenticationResponse>;

Parameters

ParameterTypeDescription
loginRequestGoogleLoginRequestLogin request including Google credential response.
optionsRequestInit(Optional) Optional fetch options.

Returns:

Promise<LoginAuthenticationResponse>

Promise to the authentication response.