Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func RefreshExpiresIn ¶
func SignWithPaseto ¶
func SignWithPaseto(key ...interface{}) Option
type PasetoTokens ¶
type PasetoTokens struct {
// contains filtered or unexported fields
}
func (*PasetoTokens) Inspect ¶
func (p *PasetoTokens) Inspect(token string) (*auth.Principal, error)
Verify 验证JWT的合法性并从中读取Principal实例
func (*PasetoTokens) Options ¶
func (a *PasetoTokens) Options() interface{}
Click to show internal directories.
Click to hide internal directories.