Skip to content

Cookie has "wrong" path when using OAuth #1

@rdmchr

Description

@rdmchr

While experimenting with this plugin I encountered the following problem: I could authenticate using Github and was redirected back to the callback page, which contained some data about my account. When I opened the dev tools I could also see that a session cookie was set. The problem is that the cookie has the following path value: /auth/github. Thus when I opened /swagger I got an Unauthorized error. I have included my repository bellow below for you. It's pretty simple (more or less just the example you provided) but with Drizzle Orm and Postgres instead of Prisma.

https://github.com/rdmchr/elysia-lucia-example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions