Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/platform/authentication/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type ErrTokenRequired struct{ *locale.LocalizedError }
var errNotYetGranted = locale.NewInputError("err_auth_device_noauth")

// jwtLifetime is the lifetime of the JWT. This is defined by the API, but the API doesn't communicate this.
// We drop a minute from this to avoid race conditions with the API.
const jwtLifetime = (1 * time.Hour) - (1 * time.Minute)
// We drop 10 minutes from this to be on the safe side and avoid race conditions with the API.
const jwtLifetime = (1 * time.Hour) - (10 * time.Minute)

// Auth is the base structure used to record the authenticated state
type Auth struct {
Expand Down