auth0-developer-hub/spa_react_typescript_hello-world

Bearer token

Opened this issue · 3 comments

Hi @byron-okta,

How is the bearer token passed to Axios header in this code? I think I'm missing something.
Kindly assist.

@AyodejiO

If you switch to the branch called "basic-authentication-with-api-integration" you can see how its done in the protected and admin page.

I was also hoping to find a way to create an axios interceptor instead for all my API request. And taking inspiration at both the setup config of the page and use the callExternalApi function this should be possible.

ah, thanks. let me try that.

Why would you leave it in a separate branch and not in the main..? 😅