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?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
You can make a request to
AbpUserConfiguration/GetAllendpoint with the access token in theAuthorizationheader and use returnedresult.auth.grantedPermissionsand set it toabp.auth.grantedPermissionsMarkdown is supportedCopy & paste or drag & drop images (max 30 MB per image)