package
0.6.0
Repository: https://github.com/saferwall/saferwall-api.git
Documentation: pkg.go.dev

# Functions

CurrentUser returns the user identity from the given context.
Handler returns a JWT-based authentication middleware.
IsAuthenticated middleware checks if a user is authenticated.
NewService creates a new authentication service.
RegisterHandlers registers handlers for different HTTP requests.
WithSource returns a context that contains the source of the HTTP request.
WithUser returns a context that contains the user identity from the given JWT.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Identity represents an authenticated user identity.
Mailer represents the mailer interface/.
Service encapsulates the authentication logic.