Update JWT expires days (#1347)
This commit is contained in:
parent
bc24a6b1db
commit
ddecf48697
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue