Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we change expiresOn variable, that token expiries not only after 1 hour? #2

Open
litinskii opened this issue May 29, 2016 · 3 comments

Comments

@litinskii
Copy link

No description provided.

@litinskii
Copy link
Author

Sorry i check source code and understand. It will be good if you provide this info about expiresOn option in Readme.md

@cusspvz cusspvz reopened this May 30, 2016
@cusspvz
Copy link
Member

cusspvz commented May 30, 2016

@w-site thanks for noticing me, gonna let this issue opened as a note so we can add it to the README later

@cavallom
Copy link

cavallom commented Dec 19, 2023

        // Check if timestamp is expired
        **//if ( timestamp > currentTimestamp() + this.options.expiresOn ) { // not works
        if ( timestamp < currentTimestamp() ) { // works**
            throw new Error( "token is expired" );
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants