0
harley.mcphee created
I am trying to prevent having to refresh the page after a user logs in but I am not sure how I can re-initialize the abp library once the user access token is set.
The current issue is that abp.auth.grantedPermissions is empty, I am assuming because abp initializes this on start up. How can I easily re-init abp once a user is logged in without refreshing my app?
1 Answer(s)
-
0
Hi,
You can make a request to
AbpUserConfiguration/GetAll
endpoint with the access token in theAuthorization
header and use returnedresult.auth.grantedPermissions
and set it toabp.auth.grantedPermissions