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": {
"husky": "^6.0.0"
"husky": "^7.0.1"
},
"scripts": {
"prepare": "husky install"

View file

@ -11,7 +11,8 @@ export const tokenInvalidException = "tokenInvalid";
class JWTTokenManager {
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 {