fix: actually pass scopes
This commit is contained in:
parent
ee2282e1e2
commit
d7abd486b4
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user