token

package
v0.0.0-...-a28d39e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	UserID    string `json:"user_id"`
	UserLevel string `json:"user_level"`
	EmpID     string `json:"emp_id"`
	LogId     string `json:"log_id"` // id log connect
}

type RequestRefresh

type RequestRefresh struct {
	RefreshToken string `json:"refresh_token" validate:"required"`
}

type Service

type Service interface {
	Create(c *cctx.Context, req *Request) (*models.Token, error)
	VerifyRefresh(c *cctx.Context, token string) (*models.TokenUser, error)
}

Service service interface

func NewService

func NewService() Service

Jump to

Keyboard shortcuts

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