Merge branch 'develop' of github.com:thecodingmachine/workadventure
This commit is contained in:
commit
406280737c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"husky": "^6.0.0"
|
"husky": "^7.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user