Standalone: fix auth with Mastodon
This commit is contained in:
parent
0b4b3479ea
commit
28b1bdf1ee
|
@ -45,13 +45,13 @@ export function createAppAndRedirect(host) {
|
||||||
|
|
||||||
export function loginWithCode(code) {
|
export function loginWithCode(code) {
|
||||||
return (dispatch, getState) => {
|
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 baseURL = localStorage.getItem('soapbox:external:baseurl');
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
client_id,
|
client_id,
|
||||||
client_secret,
|
client_secret,
|
||||||
redirect_uri: 'urn:ietf:wg:oauth:2.0:oob',
|
redirect_uri,
|
||||||
grant_type: 'authorization_code',
|
grant_type: 'authorization_code',
|
||||||
scope: scopes,
|
scope: scopes,
|
||||||
code,
|
code,
|
||||||
|
|
Loading…
Reference in New Issue