Merge pull request #327 from thecodingmachine/name8

improved textField component and allowed 8 caracter names
This commit is contained in:
Kharhamel
2020-10-15 15:27:45 +02:00
committed by GitHub
11 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -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> {