Skip to content

Commit

Permalink
use window.location.origin as redirect_uri
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Macri <gmacri@foursquare.com>
  • Loading branch information
Giuseppe Macri committed Nov 21, 2023
1 parent 33fbca0 commit 191ae6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ export default class FoursquareProvider extends Provider {
this.appName = APP_NAME;
this.apiURL = apiURL;

const redirect_uri = window.location.origin + window.location.pathname;
// const redirect_uri = window.location.origin + window.location.pathname;

this._auth0 = new Auth0Client({
domain: authDomain,
clientId: clientId,
scope: FOURSQUARE_AUTH_SCOPE,
authorizationParams: {
redirect_uri,
redirect_uri: window.location.origin,
audience: FOURSQUARE_AUTH_AUDIENCE
},
cacheLocation: 'localstorage'
Expand Down

0 comments on commit 191ae6d

Please sign in to comment.