diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/paseto/payload.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/paseto/payload.go b/lib/paseto/payload.go index b5b458bd..d1086b45 100644 --- a/lib/paseto/payload.go +++ b/lib/paseto/payload.go @@ -11,7 +11,9 @@ import ( // DriftSeconds defines the time differences in seconds allowed in // [Payload.ExpiredAt] and [Payload.NotBefore]. -const DriftSeconds = 5 +// This value can be changes to increases or decreases the leeway during +// [Payload.Validate]. +var DriftSeconds int64 = 5 // List of errors for [Payload.Validate]. var ( |
