Skip to content

Commit

Permalink
NOBUG: adding dynamodb to permissionUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltruong committed May 31, 2024
1 parent f48e448 commit 575e39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/permissionUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const INVALID_TOKEN = {
data: null
};
const { logger } = require('./logger');
const { runQuery, TABLE_NAME } = require('./dynamoUtil');
const { runQuery, dynamodb, TABLE_NAME } = require('./dynamoUtil');
const { CustomError } = require('./responseUtil');

exports.decodeJWT = async function (event) {
Expand Down Expand Up @@ -54,7 +54,7 @@ exports.getExpiryTime = function (token) {
try {
// grab the public stuff from jwt
const decodedJWT = jwt.decode(token);
if (decodedJWT && decodedJWT.iat) {
if (decodedJWT && decodedJWT.iat) {
const expiryTime = decodedJWT.exp;
//Return the unix value of the epiry
return expiryTime;
Expand Down

0 comments on commit 575e39e

Please sign in to comment.