Skip to content

getAccessTokenExpiresAt doesn't work #507

@xlc

Description

@xlc

expires.setSeconds(expires.getSeconds() + this.accessTokenLifetime);

Date.setSeconds only set the seconds part of the date.
The correct code should be new Date(Date.now() + this.accessTokenLifetime * 1000)

Similar issue exists for getRefreshTokenExpiresAt

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