util

package
v0.0.0-...-ceacdd9 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Responses = responses{}

Functions

func CheckJWTUsers

func CheckJWTUsers(token *jwt.Token, user database.User, db *gorm.DB) (bool, error)

Check that specified user and user from JWT are the same

func ValidateJWT

func ValidateJWT(tokenString string, db *gorm.DB) (*jwt.Token, error)

Check that a JWT is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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