We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57f49b commit ca0e1c0Copy full SHA for ca0e1c0
pages/sessions/basic.md
@@ -95,7 +95,7 @@ async function createSession(dbPool: DBPool): Promise<SessionWithToken> {
95
return session;
96
}
97
98
-async function hashSecret(secret: string): Uint8Array {
+async function hashSecret(secret: string): Promise<Uint8Array> {
99
const secretBytes = new TextEncoder().encode(secret);
100
const secretHashBuffer = await crypto.subtle.digest("SHA-256", secretBytes);
101
return new Uint8Array(secretHashBuffer);
0 commit comments