Skip to content

Sync user's token expiration time with the configured timeout on the API #1304

Open
@AlexRuiz7

Description

@AlexRuiz7

Describe the solution you'd like
The user's authorization token has a predefined expiration timeout of 900 seconds. Although this expiration time can be changed using the /security/config endpoint, our App uses a hardcoded expiration time, which was initially set to the default 900 seconds.

# timeout of 900 seconds, as specified on the Wazuh API
# TODO get configured value from /security/config endpoint
self.cache.set(token_key, token, 900)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions