You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
I'm getting : `ERROR TypeError: Cannot read properties of null (reading 'last_login_ip')` during the checkAuth() call. The whole `userData` object is returning `null`.
Steps to reproduce the behavior
1. Set callBack component.
2. call this.oidcSecurityService.checkAuth()
3. add console.log() inside checkAuth() call to see returning data
It fails the authentication and returns null userData.
A clear and concise description of what you expected to happen.
Returns isAuthenticated: true and the userData correctly, as it did in version 18.0.1 with the exact same code.
Additional context
Our callback component:
export class CallbackComponent {
constructor(
private router: Router,
private oidcSecurityService: OidcSecurityService,
private tokenService: TokenService,
private authService: AuthService,
private auditService: AuditService,
private activatedRoute: ActivatedRoute,
) {
this.oidcSecurityService.checkAuth().subscribe({
next: (data) => {
console.log(data); // returns userData null and isAuthenticated false in v18.0.2
console.log(activatedRoute); // returns the same in v18.0.2 and 0.1
const { userData, accessToken } = data;
void this.router.navigate(["consult"]);
},
});
}
}
Error Message and checkAuth() returning data console.log():
The text was updated successfully, but these errors were encountered:
Version
18.0.2
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
Our callback component:
Error Message and checkAuth() returning data console.log():
![Screenshot 2024-12-26 180530](https://private-user-images.githubusercontent.com/192925238/398812704-cb1e8947-f1b3-4dbf-b005-f31aa6c42ef3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDA4MzQsIm5iZiI6MTczODkwMDUzNCwicGF0aCI6Ii8xOTI5MjUyMzgvMzk4ODEyNzA0LWNiMWU4OTQ3LWYxYjMtNGRiZi1iMDA1LWYzMWFhNmM0MmVmMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwMzU1MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZDRiM2NmMzE1OGUyMGYxYWY0OTNlYzBjYzM3NDA0M2M5NWZiMmQzN2U5YjBmNDgxZjMzMzcxNzU2YjJjN2YwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UsVkfUrZ0Whx1WqWwP4AQOgAx4g9f6XVsNXnJDbhxBg)
The text was updated successfully, but these errors were encountered: