1
0

fix: add hack again

This commit is contained in:
dusk 2024-08-24 03:28:00 +03:00
parent 3d25072f4d
commit 5c38b1de09
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -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)
} }
} }