React native OAuth2 redirect_uri: Invalid scheme

后端 未结 2 1588
春和景丽
春和景丽 2021-01-25 09:55

recently I\'ve been learning about react native and I encountered a so farm unsolvable problem. I\'m trying to authenticate using gmail OAuth2 from my app, as a redirect paramet

2条回答
  •  灰色年华
    2021-01-25 10:17

    From the docs, I see two problems with your URL :

    1. The custom scheme must contain a period to be valid

    Change myscheme to something like com.myapp.

    1. Note the single "/" after the custom URI scheme, which is different from regular HTTP URLs

    Change myscheme://oauth... to myscheme:/oauth...

    After those correction, your URL should look like com.myapp.myscheme:/oauth... instead of myscheme://oauth...

提交回复
热议问题