finish method

Future<AuthResult> finish(
  1. String code
)

Completes the social authentication process using the provided authorization code.

After receiving the authorization code from the social provider, this method exchanges it for authentication credentials.

  • code: The authorization code received from the social provider.

Returns a Future<AuthResult> containing the authentication result. Throws: PassageError

Implementation

Future<AuthResult> finish(String code) {
  return PassageFlutterPlatform.instance.finishSocialAuthentication(code);
}