diff --git a/assets/scripts/libs/apple.client.js b/assets/scripts/libs/apple.client.js index ad7fbe5..2b9a177 100644 --- a/assets/scripts/libs/apple.client.js +++ b/assets/scripts/libs/apple.client.js @@ -1,6 +1,6 @@ const scripts = ['https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js']; const CLIENT_ID = 'wallet.cebggame.com'; -const REDIRECT_URI = location.href; +const REDIRECT_URI = `${location.origin}${location.pathname}`; // Authorization scopes required by the API; multiple scopes can be included, separated by spaces. const SCOPES = 'name email';