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.
Opened this issue · 1 comments
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
}
Hey there
1- format code in triple-backticks with a language specifier so it is readable, like:
// some javascript code here
if (!codeMarkdownFormatted) {
console.log('It is really hard to read and people have a hard time helping you');
}
2- please make your issue title short, include detail in the issue itself
3- if you see an error message please copy and paste the entire text of the error message, also formatted well between triple-backticks like so
4- If you request help, please fully specify your problem. You do not even indicate here what versions you are using, what platform you reproduce the error on, etc. It's not really possible to help https://stackoverflow.com/help/how-to-ask -- if a developer came to you as their manager with this problem, you would have all sorts of questions wouldn't you? Anyone that could help you has the same questions - answer them in your issue when you open the issue