op: add example for VerifyAccessToken
This commit is contained in:
parent
944fbd7c5b
commit
ef5a8a2e3a
2 changed files with 59 additions and 1 deletions
|
@ -65,7 +65,7 @@ func NewAccessTokenVerifier(issuer string, keySet oidc.KeySet, opts ...AccessTok
|
|||
return verifier
|
||||
}
|
||||
|
||||
// VerifyAccessToken validates the access token (issuer, signature and expiration)
|
||||
// VerifyAccessToken validates the access token (issuer, signature and expiration).
|
||||
func VerifyAccessToken[C oidc.Claims](ctx context.Context, token string, v AccessTokenVerifier) (claims C, err error) {
|
||||
var nilClaims C
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue