9 lines
172 B
Go
9 lines
172 B
Go
package auth
|
|
|
|
import "github.com/golang-jwt/jwt/v5"
|
|
|
|
type Authenticator interface {
|
|
GenerateToken(jwt.Claims) (string, error)
|
|
ValidateToken(string) (*jwt.Token, error)
|
|
}
|