1
0

fix: actually pass scopes

This commit is contained in:
dusk 2024-08-24 14:30:33 +03:00
parent ee2282e1e2
commit d7abd486b4
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 })
scopedCookies.set("postData", params.toString())
// get auth url to redirect user to
const authUrl = auth.createAuthUrl(client.getAuthUrl, cookies)
const authUrl = auth.createAuthUrl((state) => client.getAuthUrl(state, scopes), cookies)
redirect(303, authUrl)
}
}