fix: add hack again
This commit is contained in:
parent
3d25072f4d
commit
5c38b1de09
@ -40,7 +40,7 @@ const postAction = (client: any, scopes: string[]) => {
|
|||||||
const params = new URLSearchParams({ author, content })
|
const params = new URLSearchParams({ author, content })
|
||||||
scopedCookies.set("postData", params.toString())
|
scopedCookies.set("postData", params.toString())
|
||||||
// get auth url to redirect user to
|
// get auth url to redirect user to
|
||||||
const authUrl = auth.createAuthUrl((state) => client.createAuthorizationURL(state, scopes), cookies)
|
const authUrl = await auth.createAuthUrl((state) => client.createAuthorizationURL(state, scopes), cookies)
|
||||||
redirect(303, authUrl)
|
redirect(303, authUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user