Getting “Error: redirect_uri_mismatch” with google_oauth2

后端 未结 5 2009
孤街浪徒
孤街浪徒 2021-02-04 05:04

The URL\'s seem right (Last updated them yesterday):

\"enter

The files too:

<
5条回答
  •  被撕碎了的回忆
    2021-02-04 05:36

    Sharing a very simple copy-paste solution that worked for me.

    I copied whatever I was specifying in my code as redirectUri i.e. "redirect_uri": "http://127.0.0.1:3001/" and pasted the value of this key inside the Google settings that ask for Authorized redirect URIs. This way I'm ensured that both the parameters are same.

    If the url was computed, I would console.log() it and copy it from the console window before pasting it in for google settings.

提交回复
热议问题