Credentials.ThirdPartyAuthentication constructor
Credentials.ThirdPartyAuthentication(
- String token,
- ThirdPartyProvider provider
Instantiates the credentials to log in using a third-party authentication provider.
The provider
is the provider using to log in and token
is the token
received upon completing the third-party authentication flow.
Implementation
factory Credentials.ThirdPartyAuthentication(String token, ThirdPartyProvider provider) {
return Credentials._internal({
"provider": ThirdPartyProvider.encode(provider),
"token": token,
"kotlinType": "com.icure.cardinal.sdk.dart.auth.Credentials.UsernamePassword"
});
}