(expiration time.Time)
| 225 | }) |
| 226 | |
| 227 | func buildTokenString(expiration time.Time) (string, error) { |
| 228 | c := jws.Claims{} |
| 229 | c.SetExpiration(expiration) |
| 230 | token := jws.NewJWT(c, crypto.Unsecured) |
| 231 | tokenBytes, err := token.Serialize(nil) |
| 232 | return string(tokenBytes), err |
| 233 | } |
no outgoing calls
no test coverage detected