utils

package
v0.0.0-...-d3e7db7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewAuthToken

func CreateNewAuthToken(id, user string, isAdmin bool) (string, error)

Types

type AuthClaims

type AuthClaims struct {
	Id                   string `json:"id"`
	User                 string `json:"user"`
	Admin                bool   `json:"role"`
	jwt.RegisteredClaims `json:"claims"`
}

Jump to

Keyboard shortcuts

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