From d7abd486b47e686927d4b7da424eef5fa20793fb Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sat, 24 Aug 2024 14:30:33 +0300 Subject: [PATCH] fix: actually pass scopes --- src/routes/guestbook/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/guestbook/+page.server.ts b/src/routes/guestbook/+page.server.ts index 5bc1052..f75fd94 100644 --- a/src/routes/guestbook/+page.server.ts +++ b/src/routes/guestbook/+page.server.ts @@ -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) } }