Change USw endpoints

- Changes the necessary endpoints for OAuth to newer ones that make more sense.
- Related commit on USw: cf6384cf4d
This commit is contained in:
Gusted 2021-06-29 15:55:53 +02:00
parent fa43c6d94d
commit 8faeb3de87
No known key found for this signature in database
GPG Key ID: FD821B732837125F
2 changed files with 3 additions and 3 deletions

View File

@ -53,8 +53,8 @@ const tokenMan = (() => {
clientId: 'zeDmKhJIfJqULtcrGMsWaxRtWHEimKgS',
clientSecret: 'wqHsvTuThQmXmDiVvOpZxPwSIbyycNFImpAOTxjaIRqDbsXcTOqrymMJKsOMuibFaij' +
'ZZAkVYTDbLkQuYFKqgpMsMlFlgwQOYHvHFbgxQHDTwwdOroYhOwFuekCwXUlk',
authURL: URLS.usw + 'api/oauth/authorize_style',
tokenURL: URLS.usw + 'api/oauth/access_token',
authURL: URLS.usw + 'api/oauth/style/link',
tokenURL: URLS.usw + 'api/oauth/token',
redirect_uri: 'https://gusted.xyz/callback_helper/',
},
};

View File

@ -17,7 +17,7 @@
) {
sendPostMessage({type: 'usw-remove-stylus-button'});
if (location.pathname === '/api/oauth/authorize_style/new') {
if (location.pathname === '/api/oauth/style/new') {
API.styles.find({_isUswLinked: true}).then(style => {
sendPostMessage({type: 'usw-fill-new-style', data: style});
});