-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add anonymous user APIs #576
Conversation
...ar-react-native/android/src/main/java/io/skygear/reactnative/SGSkygearReactNativeModule.java
Outdated
Show resolved
Hide resolved
The ID token still have identity and the SDK cannot decode it. (unknown identity type). We are going to remove the identity from ID token, right? |
I think so. We should update the existing issue (SkygearIO/skygear-server#1370) for planned breaking changes. |
@louischan-oursky @carmenlau here is some sample code for testing RN SDK: const doAuth = useCallback(async () => {
const {user} = await container.auth.authenticateAnonymously();
console.log(user);
}, []);
const doPromote = useCallback(async () => {
const result = await container.auth.promoteAnonymousUser({
redirectURI: "rntest://callback"
});
console.log(result);
}, []); NOTE: for now please comment out the |
It works fine on iOS simulator. I tested it with Android emulator Pixel 2 with API Level 29. It fails at a native method in SGSkygearReactNativeModule.java:187 with the root exception |
Strange, I remember fixing both this and the |
No description provided.