I am implementing auth0 into an Angular-SPA that uses hasura as “serverless backend”. For the SPA I have created an application in Auth0, didn’t create an API for this purpose though. All working fine so far…
Now the customer wants to add functionality to get all users, change their roles, etc., so I will need a non-restricted access token. This is not recommended for SPAs but it should be handled via a backend.
I am quite new to both, Auth0 and Hasura and this doesn’t seem to be a normal usecase, so I didn’t find anything helpfull so far on the internet.
How can I utilize Auth0 or/and Hasura to handle the access token for full access?
The existing app is written with Angular. A regular backend doesn’t exist, only hasura is used for the current needs.
So far I used Auth0 to just handle authentication in the app, now there is a need to update users from the SPA-Side.
The customer wants admins to be able to update users within the SPA. That is the main problem. In Auth0 I added roles via rules and limit access to the user management within the App by the Authguard. Doesn’t feel right, but without a proper backend I don’t see another way.