login method
登录 需在xcode添加Sign in With Apple能力
Implementation
Future<AuthorizationCredentialAppleID> login() async {
return await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
);
}