Skip to content

onTokenExpired is called immediately if the token expiry is longer than 24.8 days #107

@maschino

Description

@maschino

Describe the bug

In our dev environment keycloak is issuing tokens with a very long expiry time. In our case its 30 days. Internally keycloak uses setTimeout to call the onTokenExpired callback. The browsers setTimeout method will fire immediately if the timeout value is bigger than an 32 bit integer (see MDN).

Version

26.2.0

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions