Skip to content

Add Expire options in JWT #33

@codetheorem

Description

@codetheorem

Is your feature request related to a problem? Please describe.
JWT token generated now remains forever. It is not secure for the system
.
Describe the solution you'd like
Add Expire options in the newToken function in auth,js in utils.

Additional context
https://www.npmjs.com/package/jsonwebtoken

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions