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?: MedplumRequestOptions): Promise<LoginAuthenticationResponse>;

Parameters

Parameter

Type

Description

loginRequest

GoogleLoginRequest

Login request including Google credential response.

options

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<LoginAuthenticationResponse>

Promise to the authentication response.