I am currently working on my first React Native app, and I have integrated Auth0 for authentication purposes. My goal is to implement silent authentication using refresh tokens.
So far, I have attempted to use the checkSession()
method but encountered an error:
Error: auth.checkSession() is not a function.
Additionally, I also tried setting the authorize prompt parameter to 'none', but it still opens a browser window briefly before closing it again.
auth.webAuth
.authorize({
prompt: "none",
scope: "login",
audience: AUDIENCE
})
.then(async credentials => {
console.log(credentials);
})
.catch(error => console.log(error));