Always “Have Offline Access” | Google OAuth 2

后端 未结 5 2160
忘掉有多难
忘掉有多难 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:12

    I had the same problem, and after googling for a long while, I found this link:

    "This app would like to: Have offline access" when access_type=online

    it suggests to remove 'localhost' in the redirect_uri, and it works for me.

提交回复
热议问题