diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-12-08 13:52:26 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-12-08 13:52:26 +0300 |
| commit | a06705d9390b738ccace9fb6a0c213306f753f42 (patch) | |
| tree | 6506e5f288eedc8f2768a98a8fbf32b5a944deed | |
| parent | 4e24ce2185aa4309ed9c3a239fa89d66989283d6 (diff) | |
Added OAuth 'push' and 'admin' scopes.
| -rw-r--r-- | src/services/new_api/oauth.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/new_api/oauth.js b/src/services/new_api/oauth.js index d0d18c03..3c8e64bd 100644 --- a/src/services/new_api/oauth.js +++ b/src/services/new_api/oauth.js @@ -12,7 +12,7 @@ export const getOrCreateApp = ({ clientId, clientSecret, instance, commit }) => form.append('client_name', `PleromaFE_${window.___pleromafe_commit_hash}_${(new Date()).toISOString()}`) form.append('redirect_uris', REDIRECT_URI) - form.append('scopes', 'read write follow') + form.append('scopes', 'read write follow push admin') return window.fetch(url, { method: 'POST', @@ -28,7 +28,7 @@ const login = ({ instance, clientId }) => { response_type: 'code', client_id: clientId, redirect_uri: REDIRECT_URI, - scope: 'read write follow' + scope: 'read write follow push admin' } const dataString = reduce(data, (acc, v, k) => { |
