Closed karyanayandi closed 5 months ago
Can you open an issue in https://github.com/pilcrowonpaper/arctic instead? Also you don't need to paste code not related to Arctic
Can you open an issue in https://github.com/pilcrowonpaper/arctic instead? Also you don't need to paste code not related to Arctic
oke. thank you
You're storing state
instead of code_verifier
cookies().set("code_verifier", state, {
path: "/",
// secure: process.env.NODE_ENV === "production",
secure: false,
httpOnly: true,
maxAge: 60 * 10,
sameSite: "lax",
})
You're storing
state
instead ofcode_verifier
cookies().set("code_verifier", state, { path: "/", // secure: process.env.NODE_ENV === "production", secure: false, httpOnly: true, maxAge: 60 * 10, sameSite: "lax", })
ahh my bad. thank you for your help.
Package
lucia
Describe the bug
I try use google oath following lucia and arctic documentation but always return invalid code verifier when i try to sign in.![2024-02-02_16-53](https://github.com/lucia-auth/lucia/assets/25613501/8b434b40-e3d3-48da-9587-2f9c1fb296ad)
this is is lucia.ts code
this is app/login/google/route.ts code
this is app/login/google/callback/route.ts code