description: Should be used to ID a user in your system.
$jwtPayload (Optional)
type:array | null
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:array | null
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
\SuperTokens\Session on successful creation of a session. To know more about the Session object, click here