Apple Sign in flutter AuthorizationAppleID(null, null, null, null, null)

Viewed 313

I am trying to implement apple sign with flutter. I am getting all the values as null. First Time I got name and email id but got auth_id and id_token as null. Second time all the values came null like. AuthorizationAppleID(null, null, null, null, null)

_applelogin() async {
    provider = 'apple';
        final credential = await SignInWithApple.getAppleIDCredential(
          scopes: [
            AppleIDAuthorizationScopes.email,
            AppleIDAuthorizationScopes.fullName
          ],
          webAuthenticationOptions: WebAuthenticationOptions(
            clientId: 'com.example.com',
            redirectUri: Uri.parse('https://My-Project.glitch.me/callbacks/sign_in_with_apple'),
          ),
        );
        print(credential);
  }
0 Answers
Related