auth

package
v0.0.0-...-2e93e0b Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(userId primitive.ObjectID, username string, expDate time.Time) (string, error)

func GenerateJWTWithProject

func GenerateJWTWithProject(userId primitive.ObjectID, username string, expDate time.Time, projectId primitive.ObjectID) (string, error)

func IsAuthorized

func IsAuthorized(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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