Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created May 28, 2021 19:21
Show Gist options
  • Save guilhermecarvalhocarneiro/7a21f1a2f40db9d10f9164aa845da7f0 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/7a21f1a2f40db9d10f9164aa845da7f0 to your computer and use it in GitHub Desktop.
Código de autenticação Apple
/// Pacote Utilizado: sign_in_with_apple [https://pub.dev/packages/sign_in_with_apple]
final appleIdCredential = await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
);
final oAuthProvider = OAuthProvider('apple.com');
final credential = oAuthProvider.credential(
idToken: appleIdCredential.identityToken,
accessToken: appleIdCredential.authorizationCode,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment