oktadev/schematics

Unable to get refresh token when adding 'offline_access'

Haharis opened this issue · 1 comments

Hi,

Following your guide https://developer.okta.com/blog/2019/06/20/ionic-4-tutorial-user-authentication-and-registration which is great, I noticed that when I add the 'offline_access' scope (to get the refresh token) in the configuration, the /token gets an error saying that this scope is not supported.

In fact, while implementing Authorization Code flow, you need to specify 'offline_access'' on the /authorize endpoint instead of /token (https://developer.okta.com/docs/guides/refresh-tokens/get-refresh-token/)

My question is : is it possible to specify the offline_access only for the /authorize endpoint instead of both with OktaDev Schematics ?

Thanks in advance,
Bruno.