Google OAuth 2 authorization - Error: redirect_uri_mismatch

前端 未结 30 2286
遥遥无期
遥遥无期 2020-11-22 02:58

On the website https://code.google.com/apis/console I have registered my application, set up generated Client ID: and Client Secret to my a

30条回答
  •  自闭症患者
    2020-11-22 03:15

    I had the same issue with google sign in, I was about to pull my hairs!!! I had correctly entered my callbacks in google Credential panel at google developer console here was my redirect urls :

    https://www.example.com/signin-google

    https://www.example.com/signin-google/

    https://www.example.com/oauth2callback

    https://www.example.com/oauth2callback/

    every thing seems fine right? but it still didn't work until I added one more magical Url I added signin-google url (which is default google callback) without www and problem solved.

    take it into account (depending of you domain) you may or may not need to add both with and without www urls

提交回复
热议问题