We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b4beb commit c0b2644Copy full SHA for c0b2644
packages/express/src/internal/refreshAccessToken.ts
@@ -1,5 +1,5 @@
1
import { CookieRequest } from "../middleware/ensureCookies.js";
2
-import jwt from "jsonwebtoken";
+import jwt, { JwtPayload } from "jsonwebtoken";
3
import { clearAllCookies } from "./cookie.js";
4
5
const COOKIE_SECRET = process.env.SEAMLESS_COOKIE_SIGNING_KEY!;
@@ -32,7 +32,7 @@ export async function refreshAccessToken(
32
// unwrap token with local key and rewrap with service key
33
const payload = jwt.verify(refreshToken, COOKIE_SECRET, {
34
algorithms: ["HS256"],
35
- });
+ }) as JwtPayload;
36
37
const token = jwt.sign(
38
{
0 commit comments