Bearer token
Opened this issue · 3 comments
AyodejiO commented
Hi @byron-okta,
How is the bearer token passed to Axios header in this code? I think I'm missing something.
Kindly assist.
rolfABoiten commented
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.
AyodejiO commented
ah, thanks. let me try that.
vygandas commented
Why would you leave it in a separate branch and not in the main
..? 😅