Created
May 28, 2021 19:21
-
-
Save guilhermecarvalhocarneiro/7a21f1a2f40db9d10f9164aa845da7f0 to your computer and use it in GitHub Desktop.
Código de autenticação Apple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 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