mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Added success response log to auth interceptor
This commit is contained in:
@@ -131,6 +131,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
// It's a success Login/Logout response
|
||||
let authRes: HttpResponse<any>;
|
||||
if (this.isLoginResponse(response)) {
|
||||
console.log('auth.interceptor passes success login response from backend with token: ',response.headers.get('authorization') );
|
||||
// login successfully
|
||||
const newToken = response.headers.get('authorization');
|
||||
authRes = response.clone({body: this.makeAuthStatusObject(true, newToken)});
|
||||
|
Reference in New Issue
Block a user