package
0.2.92
Repository: https://github.com/loopholelabs/auth.git
Documentation: pkg.go.dev

# Variables

ErrAlreadyExists is returned when a key already exists.
ErrNotFound is returned when a key is not found.

# Structs

APIKeyEvent is the event that is emitted when an API key is created, updated, or deleted.
HealthErrors contains errors that may have occurred while checking the health of the storage implementation.
RegistrationEvent is the event that is emitted when registration is enabled or disabled.
ServiceSessionEvent is the event that is triggered when a service session is created, updated, or deleted.
SessionEvent is the event that is triggered when a session is created, updated, or deleted.

# Interfaces

APIKey is the interface for storage of API Keys.
No description provided by the author
Flow is the interface for storage of Authorization Flows.
No description provided by the author
No description provided by the author
Health is meant to be implemented by the storage to check the status of the storage implementation.
No description provided by the author
Registration is the interface for storage of registration settings.
SecretKey is the interface for managing the secret keys used to sign and verify sessions.
No description provided by the author
No description provided by the author
Session is the interface for storage of sessions.
Storage is the interface that must be implemented by the application using this auth library for authentication and session handling.
User is the interface that must be implemented to store user data.

# Type aliases

SecretKeyEvent is the event that is emitted when a secret key is rotated, and contains the new secret key.