provider

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser added in v1.0.0

func GetUser(w http.ResponseWriter, r *http.Request)

GetUser fetches a user if authenticated and exists

func IsAuthenticated added in v1.0.0

func IsAuthenticated(h http.HandlerFunc) http.HandlerFunc

IsAuthenticated is a simple authentication middleware

func UserLogin

func UserLogin(w http.ResponseWriter, r *http.Request)

UserLogin logs a user in, returning an auth token and the user object

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL