Skip to content

NextJS Auth: Where should the session cookie be set #330

@soscler

Description

@soscler

From NextJS docs on authentication it is advised to set the session cookie on the server side. However in this the guide provided here, the cookies are set on the client side. What are the consequences of setting the cookie on client? Is it a security issue?

await setCookie("__session", idToken);

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