Skip to content

Unable to disable token expiry #19558

@LeaderbotX400

Description

@LeaderbotX400

Describe the bug

Unable to disable token expiry due to invalid time value

How to reproduce

  1. Go to Directory > Tokens and App passwords
  2. Create a token
  3. Disable token Expiring

Expected behavior

Token should never expire

Screenshots

Image Image

Additional context

No response

Deployment Method

Docker

Version

2025.12.1

Relevant log output

installHook.js:1  authentik/forms: API rejected the form submission due to an invalid field that doesn't appear to be in the form. This is likely a bug in authentik. {detail: 'Invalid time value'}
overrideMethod @ installHook.js:1
(anonymous) @ console.ts:39
(anonymous) @ Form.ts:402
Promise.catch
submit @ Form.ts:375
(anonymous) @ ModalForm.ts:54
handleEvent @ lit-html.ts:2109
n @ helpers.ts:117
TokenRequest.ts:120  Uncaught (in promise) RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at Uce (TokenRequest.ts:120:83)
    at eQe (TokenRequest.ts:105:12)
    at yR.coreTokensUpdateRaw (CoreApi.ts:2816:19)
    at yR.coreTokensUpdate (CoreApi.ts:2826:37)
    at l.send (TokenForm.ts:50:48)
    at l.submit (Form.ts:362:21)
    at v.<anonymous> (ModalForm.ts:54:34)
    at j.handleEvent (lit-html.ts:2109:29)
    at j.n [as handleEvent] (helpers.ts:117:17)
Uce @ TokenRequest.ts:120
eQe @ TokenRequest.ts:105
coreTokensUpdateRaw @ CoreApi.ts:2816
coreTokensUpdate @ CoreApi.ts:2826
send @ TokenForm.ts:50
submit @ Form.ts:362
(anonymous) @ ModalForm.ts:54
handleEvent @ lit-html.ts:2109
n @ helpers.ts:117

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug/confirmedConfirmed bugs

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions