change redirect_url for apple login

This commit is contained in:
CounterFire2023 2023-09-22 10:36:11 +08:00
parent 402fb24c30
commit a480918c29

View File

@ -1,6 +1,6 @@
const scripts = ['https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js']; const scripts = ['https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js'];
const CLIENT_ID = 'wallet.cebggame.com'; 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. // Authorization scopes required by the API; multiple scopes can be included, separated by spaces.
const SCOPES = 'name email'; const SCOPES = 'name email';