diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2020-04-26 20:10:17 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2020-04-26 20:10:17 +0300 |
| commit | f612c2aade1bc3da1d1744d46a72c5369b7aa32f (patch) | |
| tree | c9a517fe06cf9e334c89523836f8c82cd2259e0e /login-service | |
| parent | 2687ad8b7337c4bd9517430ad08ec1bbc8f4f4ba (diff) | |
Use google's expiration time in JWTmaster
Diffstat (limited to 'login-service')
| -rw-r--r-- | login-service/src/index.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/login-service/src/index.js b/login-service/src/index.js index 8b8380b..993fa9f 100644 --- a/login-service/src/index.js +++ b/login-service/src/index.js @@ -26,11 +26,9 @@ const authorizeUserNamePassword = (username, password) => { const authorizeGoogle = googleUser => { // TODO - const now = Math.round(new Date().getTime() / 1000); - return { role: 'todo_user', - exp: now + 30 * 60, // 30 minutes + exp: Number(googleUser.exp), }; }; |
