Merge pull request #5891 from mempool/nymkappa/auth-disabled-user

[auth] better handling of 'disabled' users
This commit is contained in:
wiz
2025-05-05 13:49:18 +09:00
committed by GitHub

View File

@@ -72,7 +72,7 @@ export class ServicesApiServices {
this.userSubject$.next(user);
}),
catchError((e) => {
if (e.error === 'User does not exists') {
if (e.error === 'invalid_user') {
this.userSubject$.next(null);
this.logout$().subscribe();
return of(null);