signInWithIdToken method
Sign in with a credential the app already holds.
- Google: the
idTokenfrom Google Sign-In. - GitHub: the authorization
codefrom GitHub OAuth. Auto-registers on first login.
Implementation
Future<AuthSession> signInWithIdToken(
OAuthProvider provider,
String credential,
) {
return _post('/auth/sessions:oauth', {
'provider': provider.name,
'credential': credential,
}, install: true);
}