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:
parent
fa43c6d94d
commit
9e72784b2a
|
@ -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/',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user