MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / register

Method register

apps/api/src/auth/auth.controller.ts:42–46  ·  view source on GitHub ↗
(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response)

Source from the content-addressed store, hash-verified

40 @Post("register")
41 @HttpCode(200)
42 register(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response) {
43 const r = this.auth.register(body?.email, body?.password);
44 this.setRefreshCookie(res, r.refreshToken);
45 return { user: r.user, accessToken: r.accessToken, refreshToken: r.refreshToken };
46 }
47
48 @Public()
49 @Post("login")

Callers

nothing calls this directly

Calls 1

setRefreshCookieMethod · 0.95

Tested by

no test coverage detected