We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2cb79 commit de4a303Copy full SHA for de4a303
1 file changed
config.go
@@ -60,8 +60,8 @@ func (c *SignConfig) SetExpires(expires int64) *SignConfig {
60
return c
61
}
62
63
-// SetExpiresAfter adds an "expires" parameter containing an expiration
64
-// deadline after the given delay, as Unix time.
+// SetExpiresAfter sets the "expires" parameter to createdTime + delay (seconds).
+// Use this for a relative validity window instead of an absolute timestamp.
65
// Default: 0 (do not add the parameter).
66
func (c *SignConfig) SetExpiresAfter(delay int64) *SignConfig {
67
c.expiresAfter = delay
0 commit comments