IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 841 forks source link

feat: add support `access_type` param #1296

Closed oklas closed 3 years ago

oklas commented 3 years ago

Some providers does not return refresh_token without a couple of params:

{
  prompt: 'consent',
  access_type: 'offline',
}

refs:

This adds support of access_type param which currently is not supported yet.

brockallen commented 3 years ago

Why can't you use the extrqQueryParams and extraTokenParams? That param you list from google is non-standard.

brockallen commented 3 years ago

I think the built in extra params should handle this.