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

Method refresh

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

Source from the content-addressed store, hash-verified

58 @Post("refresh")
59 @HttpCode(200)
60 refresh(@Req() req: Request, @Body() body: { refreshToken?: string }, @Res({ passthrough: true }) res: Response) {
61 const rt = body?.refreshToken ?? readCookie(req, COOKIE);
62 const r = this.auth.refresh(rt);
63 this.setRefreshCookie(res, r.refreshToken);
64 return { accessToken: r.accessToken, refreshToken: r.refreshToken };
65 }
66
67 @Public()
68 @Post("logout")

Callers

nothing calls this directly

Calls 2

setRefreshCookieMethod · 0.95
readCookieFunction · 0.85

Tested by

no test coverage detected