description: Response writer object from your API handler
userId
description: Should be used to ID a user in your system.
payload
description: There are two types of payloads:
JWT Payloads: This must be at index 0 of the payload param. This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. The interface{} in the map can be any of the primitive types, an []interface{} or another map[string]interface{}.
Session Data: This must be at index 1 of the payload param. This information is stored only in your database, so it can contain sensitive information. The interface{} in the map can be any of the primitive types, an []interface{} or another map[string]interface{}.
description: Should be used to ID a user in your system.
payload
description: There are two types of payloads:
JWT Payloads: This must be at index 0 of the payload param. This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. The interface{} in the map can be any of the primitive types, an []interface{} or another map[string]interface{}.
Session Data: This must be at index 1 of the payload param. This information is stored only in your database, so it can contain sensitive information. The interface{} in the map can be any of the primitive types, an []interface{} or another map[string]interface{}.
Returns
Session on successful creation of a session. To know more about the Session object, click here