Skip to content

Instantly share code, notes, and snippets.

@DmitrySikorsky
Created December 23, 2022 19:56
Show Gist options
  • Save DmitrySikorsky/da18c9719e690ab0c30abaae172889ce to your computer and use it in GitHub Desktop.
Save DmitrySikorsky/da18c9719e690ab0c30abaae172889ce to your computer and use it in GitHub Desktop.
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