We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72c594e + e862c58 commit bc92b12Copy full SHA for bc92b12
1 file changed
pkg/platform/authentication/auth.go
@@ -37,8 +37,8 @@ type ErrTokenRequired struct{ *locale.LocalizedError }
37
var errNotYetGranted = locale.NewInputError("err_auth_device_noauth")
38
39
// jwtLifetime is the lifetime of the JWT. This is defined by the API, but the API doesn't communicate this.
40
-// We drop a minute from this to avoid race conditions with the API.
41
-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)
42
43
// Auth is the base structure used to record the authenticated state
44
type Auth struct {
0 commit comments