Skip to content
Advertisement

Tag: authentication

How to properly add admin user to a database?

Let’s say I have an endpoint for posting new users with a logic like this: This would work but now of course every user could set the isAdmin flag. Another way would be adding admin users manually to the database but this is probably not the best way. Is there a recommended way to solve this problem? Answer You can

Issue with Auth0 and javascript Lock v11

I’m trying to test a basic authentication module on my web app using auth0 and Lock v1 login form. This is a snapshot of the code I’m using: The problem is that I’m not able to get the auth0 modal since I’m getting the following error: I don’t understand if I’m configuring in a wrong way my application on Auth0

Advertisement