apple sign in android
Closed this issue · 3 comments
I have been using this package for my app.while using this package in android didn't get any user related data from the server side
such as email and name . Web auntentication successfully worked .
final signInWithAppleEndpoint = Uri(
scheme: 'https',
host: 'flutter-sign-in-with-apple-example.glitch.me',
path: '/sign_in_with_apple',
queryParameters: <String, String>{
'code': credential.authorizationCode,
if (credential.givenName != null)
'firstName': credential.givenName!,
if (credential.familyName != null)
'lastName': credential.familyName!,
'useBundleId':
!kIsWeb && (Platform.isIOS || Platform.isMacOS)
? 'true'
: 'false',
if (credential.state != null) 'state': credential.state!,
},
);
final session = await http.Client().post(
signInWithAppleEndpoint,
);
this code not working . I got the credentials are null. please help me
You only get the credentials on the first login and you need to store them on the server. You can also find more documentation about the flow in the Apple Developer Docs
please answer to @athiraHash 's question @HenriBeck i'm also want to know