Skip to content

When does any data get inserted into the session table ? #453

@ghoshnirmalya

Description

@ghoshnirmalya

Your question
When a new user is created using Google provider, a new record gets inserted into both users and accounts tables. However, no new record gets inserted into the sessions table.

What are you trying to do
When a new user is created, a new record should be inserted into the sessions table as it is used for database sessions.

This is how I'm using next-auth in my application.

  • Found the documentation helpful
  • Found documentation but was incomplete
  • Could not find relevant documentation
  • Found the example project helpful
  • Did not find the example project helpful

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsk how to do something or how something works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions