'Login with Apple Id in Flutter?

Here is my login page, actually it should login, but I got error I included sign in capabilities in XCODE

Xcode configurations all set

** Error Message I got : Unhandled Exception: SignInWithAppleAuthorizationError(AuthorizationErrorCode.canceled, The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1001.))**

           child: InkWell(
              onTap: () async {
                final credential =
                    await SignInWithApple.getAppleIDCredential(
                  scopes: [
                    AppleIDAuthorizationScopes.fullName,
                    AppleIDAuthorizationScopes.email,
                  ],
                );
                print(credential);
                context.read<SignInBloc>().add(
                      SignInEvent.signInWithApple(
                        appleToken: credential.authorizationCode,
                      ),
                    );
              },

Above is my function to sign in with Apple Id



Solution 1:[1]

I think you need to generate the authKey of Apple sign in from the Apple Developer console.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arbaz Shaikh