completeOAuthProviderSignIn method
Completes an OAuth provider sign in, given the Nhost OAuth provider's
redirectUrl
.
For more information on redirect URLs, see https://docs.nhost.io/platform/authentication/social-login.
For an example of this in practice, see the nhost_flutter_auth
package's
OAuthProvider example.
Implementation
@override
Future<void> completeOAuthProviderSignIn(Uri redirectUrl) async {
final queryArgs = redirectUrl.queryParameters;
if (!queryArgs.containsKey(refreshTokenQueryParamName)) {
return;
}
await _refreshSession(queryArgs[refreshTokenQueryParamName]);
}