Created
December 23, 2022 19:56
-
-
Save DmitrySikorsky/da18c9719e690ab0c30abaae172889ce to your computer and use it in GitHub Desktop.
This file contains 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
if (!kIsWeb && (Platform.isIOS || Platform.isMacOS)) { | |
AuthorizationCredentialAppleID credential = await SignInWithApple.getAppleIDCredential( | |
scopes: [AppleIDAuthorizationScopes.email], | |
); | |
// Send the credential.authorizationCode to your server to exchange it for the token | |
await validateEmailWithAppleAndLogin(credential.authorizationCode); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment