access_token is undefined
enriquemorenotent opened this issue · 2 comments
enriquemorenotent commented
For some reason, after I log in with my Auth Provider, I get back a id_token, but not an access token.
I have seen my colleagues being able to make requests to the Resources Provider using the id_token, but as I had understood, that is not what should be done. It should be the access_token, right?
This is my component:
const Application: React.FunctionComponent<{}> = () => {
return (
<AuthProvider
authority="..."
clientId="..."
redirectUri="..."
scope="openid profile email"
responseType="code"
>
<MainLayout></MainLayout>
</AuthProvider>
);
};
What am I doing wrong??
simenandre commented
You can choose what kind of token you receive from your OIDC server. Which flow are you using at the moment?
simenandre commented
I haven't heard anything back on this, so I'll close this for now. Feel free to open a new issue or comment if you still have issues :)