golang.org/x/oauth2/jws.ClaimSet.Exp (field)
8 uses
golang.org/x/oauth2/jws (current package)
jws.go#L38: Exp int64 `json:"exp"` // the expiration time of the assertion (seconds since Unix epoch)
jws.go#L62: if c.Exp == 0 {
jws.go#L63: c.Exp = now.Add(time.Hour).Unix()
jws.go#L65: if c.Exp < c.Iat {
jws.go#L66: return "", fmt.Errorf("jws: invalid Exp = %v; must be later than Iat = %v", c.Exp, c.Iat)
golang.org/x/oauth2/google
jwt.go#L62: Exp: exp.Unix(),
golang.org/x/oauth2/jwt
jwt.go#L120: claimSet.Exp = time.Now().Add(t).Unix()
jwt.go#L176: token.Expiry = time.Unix(claimSet.Exp, 0)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |