@forklaunch/core 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import jose from 'jose';
1
+ import { jwtVerify } from 'jose';
2
2
  const invalidAuthorizationTokenFormat = [
3
3
  401,
4
4
  'Invalid Authorization token format.'
@@ -42,7 +42,7 @@ async function checkAuthorizationToken(authorizationMethod, authorizationToken,
42
42
  return invalidAuthorizationTokenFormat;
43
43
  }
44
44
  try {
45
- const decodedJwt = await jose.jwtVerify(token, new TextEncoder().encode(
45
+ const decodedJwt = await jwtVerify(token, new TextEncoder().encode(
46
46
  // TODO: Check this at application startup if there is any route with jwt checking
47
47
  process.env.JWT_SECRET));
48
48
  if (!decodedJwt.payload.sub) {