Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maou-shonen committed May 19, 2023
1 parent 7b9a8de commit 9fcc3e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface SessionConfig {
seal?: SealOptions;
crypto?: Crypto;
/** Default is Crypto.randomUUID */
idGenerator?: () => string,
idGenerator?: () => string;
}

const DEFAULT_NAME = "h3";
Expand Down Expand Up @@ -113,7 +113,8 @@ export async function getSession<T extends SessionDataT = SessionDataT>(

// New session store in response cookies
if (!session.id) {
session.id = config.idGenerator?.() ?? (config.crypto || crypto).randomUUID();
session.id =
config.idGenerator?.() ?? (config.crypto || crypto).randomUUID();
session.createdAt = Date.now();
await updateSession(event, config);
}
Expand Down

0 comments on commit 9fcc3e5

Please sign in to comment.