invertase / invertase/react-native-apple-authentication
i am getting error while apple login, it;s unable to cofigure, it's saying module not found for responseType: appleAuthAndroid.ResponseType.ALL, and also for scope: appleAuthAndroid.Scope.ALL, can you research for latest bugs on git or stack to find error.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- PR merge metrics
- No merged PRs in 30d
Description
async function onAppleButtonPress() {
// Generate secure, random values for state and nonce
console.log('Apple Login12');
const rawNonce = uuid.v4();
console.log('Apple Login123');
const state = uuid.v4();
// Configure the request
console.log('Apple Login');
console.log(appleAuthAndroid);
// console.log(appleAuthAndroid.ResponseType);
// console.log(appleAuthAndroid.Scope);
appleAuthAndroid.configure({
// The Service ID you registered with Apple
clientId: 'xxxxxxx', //cant tell you
// Return URL added to your Apple dev console. We intercept this redirect, but it must still match
// the URL you provided to Apple. It can be an empty route on your backend as it's never called.
redirectUri: 'xxxxxxx',
// The type of response requested - code, id_token, or both.
responseType: appleAuthAndroid.ResponseType.ALL,
// The amount of user information requested from Apple.
scope: appleAuthAndroid.Scope.ALL,
// Random nonce value that will be SHA256 hashed before sending to Apple.
nonce: rawNonce.toString(),
// Unique state value used to prevent CSRF attacks. A UUID will be generated if nothing is provided.
state: state.toString(),
});
// Open the browser window for user sign in
const response = await appleAuthAndroid.signIn();
console.log(response);
// Send the authorization code to your backend for verification
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.