accountmanager refresh token(offline access)

后端 未结 3 1332
梦毁少年i
梦毁少年i 2020-12-30 14:45

I use google login through account manager in my android app. I can get accesstoken which I send to server and server can create/login new user. Accesstoken is valid only 36

3条回答
  •  伪装坚强ぢ
    2020-12-30 15:19

    Currently you can't, which I'm sure is not the answer you're hoping for, sorry about that! If you have a web sign in, you can use the hybrid flow to get a refresh token on the server as well (see https://developers.google.com/+/web/signin/server-side-flow), but there's no way of retrieving a code as part of the Android or iOS flows.

    If this is something that you need for you use case, could you file a feature request on here: https://code.google.com/p/google-plus-platform/issues - we are actively looking at the number of stars on that to gauge demand for various features.

提交回复
热议问题