mirror of
https://github.com/mempool/mempool.git
synced 2025-04-23 15:04:41 +02:00
Merge pull request #5249 from mempool/nymkappa/fix-auth-issue
[auth] catch auth error and return null
This commit is contained in:
commit
2ff3d00bd7
@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { map, Observable, ReplaySubject, switchMap, tap } from 'rxjs';
|
||||
import { catchError, map, Observable, of, ReplaySubject, switchMap, tap } from 'rxjs';
|
||||
import { ServicesApiServices } from './services-api.service';
|
||||
|
||||
export interface IAuth {
|
||||
@ -43,7 +43,8 @@ export class AuthServiceMempool {
|
||||
}),
|
||||
map((user) => {
|
||||
return user;
|
||||
})
|
||||
}),
|
||||
catchError(() => of(null)),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user