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

Method logout

apps/api/src/auth/auth.controller.ts:70–74  ·  view source on GitHub ↗
(@Req() req: Request, @Body() body: { refreshToken?: string }, @Res({ passthrough: true }) res: Response)

Source from the content-addressed store, hash-verified

68 @Post("logout")
69 @HttpCode(200)
70 logout(@Req() req: Request, @Body() body: { refreshToken?: string }, @Res({ passthrough: true }) res: Response) {
71 this.auth.logout(body?.refreshToken ?? readCookie(req, COOKIE));
72 res.clearCookie(COOKIE, { path: COOKIE_PATH });
73 return { ok: true };
74 }
75
76 @Get("me")
77 me(@CurrentUser() user: AuthUser) {

Callers

nothing calls this directly

Calls 1

readCookieFunction · 0.85

Tested by

no test coverage detected