forward bearer token on launcher logout

This commit is contained in:
2026-07-06 09:53:06 +09:00
parent 702d093736
commit 951ae8c570
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ export class AuthController {
@Req() request: Request,
@Res({ passthrough: true }) response: Response,
) {
return this.authService.logout(request.headers.cookie, response);
return this.authService.logout(
request.headers.cookie,
response,
this.getBearerToken(request),
);
}
@Get('me')
+6 -1
View File
@@ -63,10 +63,15 @@ export class AuthService {
return this.frontendTokenResponse(authResponse);
}
async logout(cookieHeader: string | undefined, response: Response) {
async logout(
cookieHeader: string | undefined,
response: Response,
accessToken?: string,
) {
await this.request('/auth/logout', {
method: 'POST',
cookieHeader,
accessToken,
response,
ignoreAuthErrors: true,
});