examples

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	SessionID int64
}

UserClaims is custom claim to make jwt

func (*UserClaims) Valid

func (u *UserClaims) Valid() error

Valid validtates if the claims are valid. It returns nil if valid.

Jump to

Keyboard shortcuts

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