Skip to content

useSession doesn't work with CSR #61

Closed
nextauthjs/next-auth
#6795
@kingstarfly

Description

@kingstarfly

image

Expectation: The app tells me that I'm logged in as a user by showing me "Logged in as XXXX"
Situation: Username is blank.

Steps to reproduce

  1. Create new project with auth and prisma selected.
  2. Add discord client id and secret into .env file.
  3. Click log out.
  4. Click log in and go through Discord's OAuth client.
  5. Arriving at localhost:3000, the username is missing.

It seems like sessionData() isn't working as expected. Is this an issue with @auth/solid-start from the Auth.js library? Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions