Merge branch 'develop' of github.com:thecodingmachine/workadventure into develop

This commit is contained in:
Lurkars 2021-08-10 14:20:39 +02:00
commit fc1a7afd9a
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"devDependencies": { "devDependencies": {
"husky": "^6.0.0" "husky": "^7.0.1"
}, },
"scripts": { "scripts": {
"prepare": "husky install" "prepare": "husky install"

View File

@ -11,7 +11,8 @@ export const tokenInvalidException = "tokenInvalid";
class JWTTokenManager { class JWTTokenManager {
public createAuthToken(identifier: string) { public createAuthToken(identifier: string) {
return Jwt.sign({ identifier }, SECRET_KEY, { expiresIn: "3d" }); //TODO fix me 200d when ory authentication will be available
return Jwt.sign({ identifier }, SECRET_KEY, { expiresIn: "200d" });
} }
public decodeJWTToken(token: string): AuthTokenData { public decodeJWTToken(token: string): AuthTokenData {