# Functions
DeleteSessionCookie tries to delete the session cookie from the browser.
FromJson returns a session deserialised from its JSON representation.
GetJwtSignature returns the signature of JWT tokens.
GetSessionCookie tries to retrieve a session cookie from the request.
NewManager creates a new session storage.
SetSessionCookie writes the session id cookie to the response.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
DefaultExpiration is the default duration before a session expires.
SessionCookieName is the name of the session cookie.
SessionCookiePath is the path for which the session cookie is valid.
# Variables
ErrCreatingSid occurs when we can't read some random bytes from the system; this error is highly improbable.
ErrMalformedToken happens when we can't parse a bearer token.
ErrSessionNotFound is the error returned if we can't find a given session ID or no session ID has been given at all.
ErrTokenConfigError is returned when trying to create a new session from token without having a token func defined.
ErrUnknownUser occurs when the user successfully logs in with an external identity but we can't get our uid from the database.
# Type aliases
No description provided by the author
No description provided by the author