Skip to content

Commit c0b2644

Browse files
committed
fix: jwt typing error
1 parent a4b4beb commit c0b2644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/express/src/internal/refreshAccessToken.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CookieRequest } from "../middleware/ensureCookies.js";
2-
import jwt from "jsonwebtoken";
2+
import jwt, { JwtPayload } from "jsonwebtoken";
33
import { clearAllCookies } from "./cookie.js";
44

55
const COOKIE_SECRET = process.env.SEAMLESS_COOKIE_SIGNING_KEY!;
@@ -32,7 +32,7 @@ export async function refreshAccessToken(
3232
// unwrap token with local key and rewrap with service key
3333
const payload = jwt.verify(refreshToken, COOKIE_SECRET, {
3434
algorithms: ["HS256"],
35-
});
35+
}) as JwtPayload;
3636

3737
const token = jwt.sign(
3838
{

0 commit comments

Comments
 (0)