Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
Sessions wraps the datastore and any HTTP handlers for project user sessions
func New ¶
func New(db interfaces.Datastore, config *config.AppConfig) *Sessions
New returns a pointer to a new `Users` struct
func (*Sessions) CreateSession ¶
CreateSession creates a new project user session
func (*Sessions) ListSessions ¶
ListSessions lists all active user sessions for a project
func (*Sessions) RefreshSession ¶
RefreshSession uses the refresh token to generate a new access token
func (*Sessions) RevokeSession ¶
RevokeSession deletes a session from the project collection
Click to show internal directories.
Click to hide internal directories.