Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewPasetoMaker)
ProviderSet is paseto providers.
Functions ¶
This section is empty.
Types ¶
type TokenMaker ¶
type TokenMaker interface { NewAccessToken(userId string) (string, error) NewRefreshToken(userId string) (string, error) ParseAccessToken(token string) (string, error) ParseRefreshToken(token string) (string, error) }
func NewPasetoMaker ¶
func NewPasetoMaker(c *conf.TokenMaker) (TokenMaker, error)
Click to show internal directories.
Click to hide internal directories.