fix: change expiresIn parameter to string type in signToken function
This commit is contained in:
parent
128088abfd
commit
917d6e2a84
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const secret = new TextEncoder().encode(env.JWT_SECRET);
|
|||
|
||||
export async function signToken(
|
||||
payload: Session,
|
||||
expiresIn = "1h",
|
||||
expiresIn: string,
|
||||
type: "accessToken" | "refreshToken",
|
||||
) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue