bjerkio/oidc-react

Acquire access token with a new scope

Oliver15-dev opened this issue · 0 comments

Hey all,

I'm trying to access my API that is protected by azure using the access token I received after a successful log using oidc-react. It looks like the issue I'm facing is that the scope of the access token does not contain the guide of my azure app. How do I request a new access token with the API included in the scope? I have tried including the API in the scope property of AuthProviderProps but I get a 401 unauthorized error.