Standalone: fix auth with Mastodon

reply-to-ui
Alex Gleason 2021-08-22 14:46:40 -05:00
rodzic 0b4b3479ea
commit 28b1bdf1ee
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -45,13 +45,13 @@ export function createAppAndRedirect(host) {
export function loginWithCode(code) {
return (dispatch, getState) => {
const { client_id, client_secret } = JSON.parse(localStorage.getItem('soapbox:external:app'));
const { client_id, client_secret, redirect_uri } = JSON.parse(localStorage.getItem('soapbox:external:app'));
const baseURL = localStorage.getItem('soapbox:external:baseurl');
const params = {
client_id,
client_secret,
redirect_uri: 'urn:ietf:wg:oauth:2.0:oob',
redirect_uri,
grant_type: 'authorization_code',
scope: scopes,
code,