MCPcopy
hub / github.com/alan2207/bulletproof-react / loginAsUser

Function loginAsUser

apps/nextjs-app/src/testing/test-utils.tsx:39–43  ·  view source on GitHub ↗
(user: any)

Source from the content-addressed store, hash-verified

37};
38
39export const loginAsUser = async (user: any) => {
40 const authUser = await authenticate(user);
41 Cookies.set(AUTH_COOKIE, authUser.jwt);
42 return authUser;
43};
44
45const initializeUser = async (user: any) => {
46 if (typeof user === 'undefined') {

Callers 1

initializeUserFunction · 0.70

Calls 1

authenticateFunction · 0.90

Tested by

no test coverage detected