jwt

package
v0.0.0-...-8b0b209 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenRepository

func NewTokenRepository(secretKey string, expiresWith int64) repository.TokenRepository

NewTokenRepository creates a jwt token repository instance

Types

type TokenClaims

type TokenClaims struct {
	jwt.StandardClaims
	Role entity.UserRole `json:"role"`
}

TokenClaims represents the custom claims with role

Jump to

Keyboard shortcuts

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