Skip to content

Commit ca0e1c0

Browse files
authored
Fix wrong return type (#1806)
1 parent c57f49b commit ca0e1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/sessions/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function createSession(dbPool: DBPool): Promise<SessionWithToken> {
9595
return session;
9696
}
9797

98-
async function hashSecret(secret: string): Uint8Array {
98+
async function hashSecret(secret: string): Promise<Uint8Array> {
9999
const secretBytes = new TextEncoder().encode(secret);
100100
const secretHashBuffer = await crypto.subtle.digest("SHA-256", secretBytes);
101101
return new Uint8Array(secretHashBuffer);

0 commit comments

Comments
 (0)