Always “Have Offline Access” | Google OAuth 2

后端 未结 5 2177
忘掉有多难
忘掉有多难 2021-02-09 02:59

I am trying to get fetch user\'s profile using Google OAuth2 api. After user authentication, on the consent page, I am always asked for \"Have Offline Access\"

The URL i

5条回答
  •  春和景丽
    2021-02-09 03:11

    if you are using node js module 'everyauth' , you can override the googles default value by

    .authQueryParam({ access_type:'online', approval_prompt:'auto' })
    

提交回复
热议问题