Need to delay the route canActivate method call until my Authentication service return user role for the user id.
Our angular application doesn't have any login page, it uses user id from the server login. When user access the URL, authentication service get called in app.compoment.ts but before the service return any result, canActivate method get called, and doesn't have the user role at that time. So blocks all user access.
I have tried using async and wait with https call to get the user data, but that also not worked. Can anyone help here?