mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(auth): revoke the parsed token on logout (#2356)
This commit is contained in:
1 parent
ef248a8515
commit
b82681b77a
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user