token

package
v0.0.0-...-0fbe093 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type  string `json:"type"`
	Token string `json:"token"`
}

func NewBearer

func NewBearer(token string) *Token

type TokenService

type TokenService interface {
	CreateJwtToken(userID uint, role role.Role) (*Token, error)
}

func NewService

func NewService(signingKey string) TokenService

Jump to

Keyboard shortcuts

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