Now My app has two different buttons for login and registration. When login is clicked, I want to only show Auth0 login dialog and when register is clicked, I want to show only Auth0 registration.
As I am not using Auth0 Lock, allowLogin option does not work. I was wondering if there is a way to achieve this? Also, I will need to modify the Auth0 UI to match my app theme.
So pretty much I believe there are two ways to develop the app with our stack. You can either go for Lock which gives you a general UI that you can more or less customise based on your needs along with using the SDK it’s hitting proper API endpoints in the background etc etc (where you can make use of allowLogin)
The other approach requires more development work from your side as you will only be using our Authentication API hitting the right endpoints to handle login / signup / logout and with that solution you will need to build the UI itself (which you can build base on your project needs)
Thanks Konrad. I am happy to use Authentication API if they are javascript. I am building a progressive web app using Ionic hence I would need this to work on both mobile and web. Also, I have to use silent authentication in both mobile and web. Can you please point me in the right direction?
The link you attached is for auth0.js one of our libraries. Basically you need to think of our libraries, SDKs and frameworks as an interface. All of them have proper API endpoints implemented under the hood then once you’re using one of them you simply use certain functions which that simply hit those endpoints for you.
If you want to develop the system yourself hitting endpoints yourself of course you can do it! When it comes to login / signup / logout API it’s Authentication API that you can find here:
I am staying away from Lock as I am creatingmy own UI and personally I think it still has some limitation on mobile app so just want to use auth0-js and the doc you sent me for silent authentication. I will create my own UI. Do you think this is right approach? Just confirming now before I commit to something. Thanks