description: Should be used to ID a user in your system.
jwtPayload (Optional)
type:object
description: This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. Once set, it cannot be changed during the lifetime of a session.
sessionData (Optional)
type:object
description: This information is stored only in your database, so it can contain sensitive information if needed. This can be freely modified during the lifetime of a session. But we do not synchronize calls to modify this - you must take care of locks yourself.
Returns
Promise<Session> on successful creation of a session. To know more about the Session object, click here
description: Should be used to ID a user in your system.
jwtPayload (Optional)
type:object
description: This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. Once set, it cannot be changed during the lifetime of a session.
sessionData (Optional)
type:object
description: This information is stored only in your database, so it can contain sensitive information if needed. This can be freely modified during the lifetime of a session. But we do not synchronize calls to modify this - you must take care of locks yourself.
Creates a new access, a new refresh and a new idRefresh token for this session. These need to be set in the cookies and headers of your response as explained here