Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(auth): revoke the parsed token on logout (#2356)

Hampusb82681b77ae9
diff --git a/fluxer_api/src/api/auth/AuthRequestService.ts b/fluxer_api/src/api/auth/AuthRequestService.ts
index 734ed717c..afbd1cb8f 100644
--- a/fluxer_api/src/api/auth/AuthRequestService.ts
+++ b/fluxer_api/src/api/auth/AuthRequestService.ts
@@ -182,7 +182,7 @@ export class AuthRequestService {
}
async logout({authorizationHeader, authToken}: AuthLogoutRequest): Promise<void> {
- const token = authorizationHeader ?? authToken;
+ const token = authToken ?? authorizationHeader;
if (token) {
await AuthSession.revokeToken(this.apiContext, token);
}