I need to sometime get a refresh token for offline access. I tried using approval_prompt=force parameter as described in the readme and it did not work. I had to use prompt=consent. The documentation only mentions the existence of prompt parameters. Maybe approval_prompt has been deprecated.
Instead of adding another specific parameter for the key "prompt" I made a white-list of parameters that can be configured either at the app level or at for a specific flow. This allows more granular control what the user is accepting. For example, it could allow an app to use typical sign in consent for login and different offline access if the user needs a particular feature.
I need to sometime get a refresh token for offline access. I tried using
approval_prompt=force
parameter as described in the readme and it did not work. I had to useprompt=consent
. The documentation only mentions the existence ofprompt
parameters. Maybe approval_prompt has been deprecated.Instead of adding another specific parameter for the key "prompt" I made a white-list of parameters that can be configured either at the app level or at for a specific flow. This allows more granular control what the user is accepting. For example, it could allow an app to use typical sign in consent for login and different offline access if the user needs a particular feature.