Always “Have Offline Access” | Google OAuth 2

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

    Because you are redirecting back to http(s)://localhost:/. This makes sense because any app that requests redirection to localhost is obviously running locally.

    Redirect it to a public web address and it will not bother you.

提交回复
热议问题