Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnauthenticated = chatable.NewAuthenticationError("Unauthenticated") ErrAlreadyAuthenticated = chatable.NewAuthenticationError("Already authenticated") ErrUserNotFound = chatable.NewAuthenticationError("User not found") )
Functions ¶
func ActiveUser ¶
ActiveUser gets the authenticated user from request.
func TokenAuthenticate ¶
func TokenAuthenticate(w http.ResponseWriter, r *http.Request) chatable.CompoundError
TokenAuthenticate authenticates a token from request.
func TokenUnAuthenticate ¶
func TokenUnAuthenticate(w http.ResponseWriter, r *http.Request) chatable.CompoundError
TokenUnAuthenticate deactivates a token.
Types ¶
Click to show internal directories.
Click to hide internal directories.