Cross-platform Google OAuth Signin: redirect_uri mismatch

前端 未结 1 1654
醉话见心
醉话见心 2021-01-14 03:54

I use Google OAuth for authenticating users on my application and face an issue with redirect_uri to support multiple client apps.

On the server-side, I

1条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 04:00

    You need to set the redirect uri as following:

    1. If it's web sdk set it to 'postmessage'
    2. If it's mobile (android in your case) set it to '' (empty string)

    Pass from the client some kind of identifier so you will know in the server which redirect uri you should set.

    0 讨论(0)
提交回复
热议问题