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