I am trying to access the token with pop up using getAccessTokenWithPopup
method.
export const getApiAccessToken = async getAccessTokenWithPopup => {
const audience = "http://localhost/8000"
let token = await getAccessTokenWithPopup({
audience: audience,
scope: "read_write:all"
}).catch(err => console.error(err))
console.log(token)
The method catches this error and the token is undefined.
index.js:1 Error: Invalid state
at e.<anonymous> (auth0-spa-js.production.esm.js:15)
at auth0-spa-js.production.esm.js:15
at Object.next (auth0-spa-js.production.esm.js:15)
at a (auth0-spa-js.production.esm.js:15)
It worked well a few hours ago, something screwed up.
update --------------
after some time of debugging this error appears
Error: Service not found: http://localhost:8000/