11 lines
320 B
Go
11 lines
320 B
Go
|
|
package authjwt
|
||
|
|
|
||
|
|
import "github.com/golang-jwt/jwt/v5"
|
||
|
|
|
||
|
|
// Verifier validates JWT strings.
|
||
|
|
// Services that verify tokens but never issue them use a Verifier
|
||
|
|
// (e.g. NewRSAPublicKeyVerifier, NewECPublicKeyVerifier) instead of the full Signer.
|
||
|
|
type Verifier interface {
|
||
|
|
Verify(tokenString string) (*jwt.Token, error)
|
||
|
|
}
|