Comments (10)
still receiving null in fullName
from react-native-apple-authentication.
Same here with 0.61.2 & 0.57.8
from react-native-apple-authentication.
I hard coded the scopes in Appleauthentication Xcode project. then it started working. looks like scopes are not getting in Apple native
from react-native-apple-authentication.
Change scopes
to requestedScopes
here:
https://github.com/SystangoTechnologies/react-native-apple-authentication/blob/master/index.js#L13
from react-native-apple-authentication.
Change
scopes
torequestedScopes
here:
https://github.com/SystangoTechnologies/react-native-apple-authentication/blob/master/index.js#L13
I tried that but it still isn't working
from react-native-apple-authentication.
So a couple things here... requestedScopes
does fix the issue of it asking for name and email during sign in. However, due to Apple policies this information is only returned the very first time it's asked for. After that the user would have to revoke the sign in permissions in Settings > [NAME] > Passwords & Security > Apps Using Your Apple ID
This worked for email, however I also had to change the code in AppleAuthentication.m
around line 77.
NSDictionary* user = @{ @"firstName": RCTNullIfNil(credential.fullName.givenName), @"lastName": RCTNullIfNil(credential.fullName.familyName), @"email": RCTNullIfNil(credential.email), @"user": credential.user, @"authorizedScopes": credential.authorizedScopes, @"realUserStatus": @(credential.realUserStatus), @"state": RCTNullIfNil(credential.state), @"authorizationCode": RCTNullIfNil(credential.authorizationCode), @"identityToken": RCTNullIfNil(credential.identityToken) };
I changed fullName to firstName and lastName as just .fullName does not return anything.
from react-native-apple-authentication.
Change
scopes
torequestedScopes
here:
https://github.com/SystangoTechnologies/react-native-apple-authentication/blob/master/index.js#L13
@vonrussel Thanks, I have replaced scopes with requestedScopes and it worked.
from react-native-apple-authentication.
Change
scopes
torequestedScopes
here:
https://github.com/SystangoTechnologies/react-native-apple-authentication/blob/master/index.js#L13I tried that but it still isn't working
@Estebank94 Thanks, I have replaced scopes with requestedScopes and it worked.
from react-native-apple-authentication.
@iamgerardm I am getting Fullname after this, please take the latest code and check if it's working now or not.
from react-native-apple-authentication.
No activities. Closing this issue for now
from react-native-apple-authentication.
Related Issues (17)
- [iOS] I got an error "Apple sign in only support iOS 13 or newer" HOT 1
- How to change the text of sign in button HOT 4
- identityToken is null HOT 2
- Border Radius HOT 1
- How to get white style of apple button if background is dark or black. HOT 8
- Invariant Violation: requireNativeComponent: "RNCSignInWithAppleButton" was not found in the UI manager
- Empty callback After Login HOT 5
- How to implement buttonText HOT 2
- Not working on Simulator, causes Apple rejections HOT 1
- Got Error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)" HOT 5
- Error when click to sigin with Apple
- Response Apple Login Null Resssult {"authorizationCode": null, "authorizedScopes": [], "email": null, "fullName": null, "identityToken": null, "realUserStatus": 1, "state": null, "user": "000694.770e4595a7254085b9d3ce75c68b135b.0305"} HOT 3
- Issue running android after the react native update 0.70
- RNSignInWithAppleButton was not found in UIManager. HOT 4
- apple login return null data HOT 2
- 大佬 demo 跑不起来啊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-apple-authentication.