auth

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package auth Date: 2024/3/27 15:02 Author: Amu Description:

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidToken = errors.New("invalid token")

Functions

This section is empty.

Types

type Auther

type Auther interface {
	GenerateToken(userID string, username string, isAdmin string) (TokenInfo, error)
	DestroyToken(token string) error
	ParseToken(token string, tokenType string) (string, string, string, error)
	Release() error
	RecordAudit(username string, operate string)
}

type TokenInfo

type TokenInfo interface {
	GetAccessToken() string
	GetRefreshToken() string
}

Directories

Path Synopsis
Package jwtauth Date: 2024/3/27 15:02 Author: Amu Description:
Package jwtauth Date: 2024/3/27 15:02 Author: Amu Description:

Jump to

Keyboard shortcuts

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