extended the exprire duration for jwt token
This commit is contained in:
parent
67a9bd2520
commit
d35b3ff5be
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import {TokenInterface} from "../Controller/AuthenticateController";
|
|||
class JWTTokenManager {
|
||||
|
||||
public createJWTToken(userUuid: string) {
|
||||
return Jwt.sign({userUuid: userUuid}, SECRET_KEY, {expiresIn: '24h'});
|
||||
return Jwt.sign({userUuid: userUuid}, SECRET_KEY, {expiresIn: '200d'}); //todo: add a mechanic to refresh or recreate token
|
||||
}
|
||||
|
||||
public async getUserUuidFromToken(token: unknown): Promise<string> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue