MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / createAuthSessionToken

Function createAuthSessionToken

apps/web/lib/server/auth.ts:44–47  ·  view source on GitHub ↗
(username: string, password: string)

Source from the content-addressed store, hash-verified

42}
43
44export async function createAuthSessionToken(username: string, password: string) {
45 const secret = getSessionSecret(username, password);
46 return sha256Hex(`${username}:${password}:${secret}`);
47}
48
49export async function verifyWebCredentials(username: string, password: string) {
50 const config = getWebAuthConfig();

Callers 2

POSTFunction · 0.90
isAuthenticatedCookieFunction · 0.85

Calls 2

getSessionSecretFunction · 0.85
sha256HexFunction · 0.85

Tested by

no test coverage detected