openMF / ph-ee-operations-web

Operations web application front-end
Mozilla Public License 2.0
5 stars 34 forks source link

"Cannot read property 'refresh_token'" on first time login #18

Open Sugihiru opened 3 years ago

Sugihiru commented 3 years ago

Steps :

Here's the full stacktrace from Google Chrome : vendor.js:82730 ERROR TypeError: Cannot read property 'refresh_token' of null at AuthenticationService.push../src/app/core/authentication/authentication.service.ts.AuthenticationService.refreshOAuthAccessToken (main.js:991) at AuthenticationInterceptor.push../src/app/core/authentication/authentication.interceptor.ts.AuthenticationInterceptor.intercept (main.js:764) at HttpInterceptorHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptorHandler.handle (vendor.js:38435) at HttpXsrfInterceptor.push../node_modules/@angular/common/fesm5/http.js.HttpXsrfInterceptor.intercept (vendor.js:39035) at HttpInterceptorHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptorHandler.handle (vendor.js:38435) at HttpInterceptingHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptingHandler.handle (vendor.js:39072) at ErrorHandlerInterceptor.push../src/app/core/http/error-handler.interceptor.ts.ErrorHandlerInterceptor.intercept (main.js:1423) at HttpInterceptorHandler.push../src/app/core/http/http.service.ts.HttpInterceptorHandler.handle (main.js:1635) at ApiPrefixInterceptor.push../src/app/core/http/api-prefix.interceptor.ts.ApiPrefixInterceptor.intercept (main.js:1289) at HttpInterceptorHandler.push../src/app/core/http/http.service.ts.HttpInterceptorHandler.handle (main.js:1635) defaultErrorLogger @ vendor.js:82730

Firefox is returning a ERROR TypeError: oAuthData is null.