Hey guys.
I have been on this issue for like 2 weeks and can’t get my head around this. Hence, posting here for some expert opinion.
So the scenario is that I would like my users to log in to my application by custom login flow. For this I am calling this api with this payload.
const data = {
method: 'POST',
url: 'https://XXX/oauth/token',
headers: { 'content-type': 'application/json' },
data: new URLSearchParams({
grant_type: 'password',
username: email,
password: password,
audience: XXX',
scope: 'openid profile email read:users update:users create:users create:connections',
client_id: AUTH0_CLIENT_ID,
}),
};
Since my application is SPA so in return I get a response like this.
{"access_token":"token","id_token":"token","scope":"openid profile email","expires_in":86400,"token_type":"Bearer"}
After when I redirect my application to home page which is wrapped in an auth HOC it redirects me to login page of auth0. This is what I am getting on logs.
I would appreciate any help on this please.