adambrgmn / react-oauth-flow

An OAuth2 flow for React apps
MIT License
94 stars 37 forks source link

Cannot use baseUrl #4

Closed adambrgmn closed 6 years ago

adambrgmn commented 6 years ago

In the beginning I made an assumption that the authorize endpoint and token endpoint existed on the same base url. But that was a mistake. Therefore the prop baseUrl have to be omitted in favor of requiring the props authorizeUrl and tokenUrl.

Example:

On Drobox the authorize url is: https://**www**.dropbox.com/oauth2/authorize. And the token url is: https://**api**.dropbox.com/oauth2/token.