Auth0 createUser API reactJS w/ Express Backend - node.js

I’m just learning how to hook up my ReactJS frontend to a Node.JS /Express backend, using the Auth0 SDK.
So far, so good in terms of creating users and adding user_metadata / user_appdata via the Auth0 console and User Management API; but I would like to allow my website Admins to create users from a frontend form via the Auth0 API.
I can’t find any code samples or tutorial videos to help me get on the right track. Feeling kinda lost right now. Any help would be greatly appreciated.
Thanks in advance,
Carlos

Related

How to use Firebase Auth to register/login/mint token but Mongodb for everything else?

--First time poster, mods please let me know if the question is inappropriate/incorrect--
Situation:
I'm working on an app with friends. We have a dedicated frontend layer and a dedicated nodejs server running MongoDB. I am trying to integrate firebase into our server layer so we can login users and handle minting/verifying/refreshing tokens using Firebase Auth.
Problem:
I'm completely lost as to how to use Firebase Auth for this purpose. I've looked through the docs extensively, I first went down the "Getting Started with Firebase on an App", until I realized (I think) that guide was specifically for web applications without a dedicated backend.
Then I looked more into Firebase Auth Admin, which looked more like what I was looking for. I tried messing with custom token creation and other authentication related matters but I fail to be able to log in.
I reached out to friends for help, they recommended getting local login/googleauth working End-to-end using firebase before trying to secure our tokens moreso than they already are.
I'm very lost and not sure if I'm misunderstanding something fundamental or just not applying the right things. I apologize if this is unclear, I'm just trying to allow email/password login using firebase auth to securely authenticate with my MongoDB data (if that's even necessary)
Any guidance would be appreciated!
You're absolutely right with your approach and its possible to use Firebase Auth for just login/signup and rest of all on mongoDB.
There are 2 ways u can implement the Firebase Auth-
Using the sdk provided by Firebase
Using the Admin Auth API
Which ever way you selected, Later on save your UID on your custom Backend (Which is backed by MongoDB)
Just create your API's to verify user identity.
If you're using NodeJs you can follow this tutorial.

Google Sign-in using Angular app with a Node.js backend

I'm trying to implement Google Sign-in into my Angular 8 app which has a REST backend in Node.js+Express.js, I'm not able to find a usefull library, can anyone help me out please?
You can use Firebase auth for this purpose which is very easy to implement and understand. Either this Google oauth2 nodejs library describes the steps to implement the Google Auth in a node.js environment.

Private API for React (MERN)

I've been working on using the MERN Stack to build my web apps, and the only way that I have found to connect to Mongo is using an API. I want to make sure my users' information stays private. So how would I go about doing that? Is it possible? If not, how should I connect React to my database?
Thanks for reading, and I'm sorry for any unclear information. I'm new to this and don't know how to convey my problem.
It doesn't matter if you are using the MEAN or the MERN stack. Authenticating APIs is pretty standard and for the most part, has been answered here on stackoverflow:
Please go to this link:
REST API Authentication.
What you are looking to do is using the OAuth authentication standard. There are organizations that provide these services. Auth0 and okta are examples.

Phonegap Facebook authentice in server side using expressjs and passportjs

I built a web server using nodejs and expressjs where authentication is done using passportjs.
I now want to build a mobile application using phonegap and of course use my existing web server to query for data.
I need to authenticate my users using Facebook connect on my server and only then the session is created and I can query my API.
I searched a lot for a solution and found nothing. I looked at InAppBrowser and ChildBrowser but I don't think they will do the trick as I need to keep the session alive in order to query the api.
Any help would be appreciated
Thanks

NodeJS API - security issues

I am making an API in NodeJS that 'll be used by a website and iPhone native app at the same time.
There is a chance that API URL will be exposed to user when used in javascript for website. I only want authorized access to the API. Don't want anyone call API via console. like user/delete/[user-id], anyone can use this URL to delete a user.
Check out http://passportjs.org/
There are plenty of authentication strategies to use. Don't reinvent the wheel here. ;)

Resources