diff --git a/background/token-manager.js b/background/token-manager.js index 9c21f85a..561cb70f 100644 --- a/background/token-manager.js +++ b/background/token-manager.js @@ -43,7 +43,7 @@ const tokenManager = (() => { clientSecret: '9Pj=TpsrStq8K@1BiwB9PIWLppM:@s=w', authURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', tokenURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/token', - redirect_uri: 'https://clngdbkpkpeebahjckkjfobafhncgmne.chromiumapp.org/', + redirect_uri: 'https://' + location.hostname + '.chromiumapp.org/', scopes: ['Files.ReadWrite.AppFolder', 'offline_access'] } };