9 lines
192 B
Go
Executable File
9 lines
192 B
Go
Executable File
package token
|
|
|
|
import "time"
|
|
|
|
type Maker interface {
|
|
CreateToken(username string, userID int, duration time.Duration) (string, *Payload, error)
|
|
VerifyToken(token string) (*Payload, error)
|
|
}
|