Change USw endpoints (#1269)

- 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-07-02 00:12:24 +00:00 committed by GitHub
parent fa43c6d94d
commit 9e72784b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -17,7 +17,7 @@
) { ) {
sendPostMessage({type: 'usw-remove-stylus-button'}); 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 => { API.styles.find({_isUswLinked: true}).then(style => {
sendPostMessage({type: 'usw-fill-new-style', data: style}); sendPostMessage({type: 'usw-fill-new-style', data: style});
}); });