package
0.0.0-20201019154204-5f7224491274
Repository: https://github.com/ramonmacias/go-auth-middleware.git
Documentation: pkg.go.dev

# Functions

Cookie will setup a new http.Cookie with the given token as a cookie value.
ExpiredCookie will setup the auth cookie as expired.
NewCookieService will build a new service with the given host.
NewJWTProvider will build a new auth.Provider based on a jwt implementation.

# Variables

ErrMandatorySessionFields is a specific error used for we don't have all the mandatory fields on the token claims.
ErrTokenExpired is a specific error used for determine when a given token is no longer valid due a time constraints.

# Structs

CookieService will keep the basics for manage all the quicka cookies.
Session type encapsulates the basic information for identifier a user.

# Interfaces

Provider interface defines which method should be implemented in order to becom an auth.Provider.