Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserLoginError = errors.New("please first authorize user login") RefreshTokenExpired = errors.New("refresh token verification expired") )
Functions ¶
func Middleware ¶
func Middleware(auth Auth, args ...interface{}) gin.HandlerFunc
Middleware authorization verification
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Create ¶
func (x *Auth) Create(c *gin.Context, sub interface{}, uid interface{}, data interface{}) (raw string, err error)
Create authorization logic
Click to show internal directories.
Click to hide internal directories.