简体   繁体   中英

Sign In using firebase cloud functions

Is there any way to make authentication using HTTP Requests (Firebase Cloud Fucntions) I implemented a HTTP function for the sign up so I send the information to my HTTP API with the POST method and with the Admin SDK I create A new User and I send back a JSON response but I didn't find any way to make login

What I want is to send email and password via HTTP Post and If the user exists and the data is correct and send back a response

Is it wrong to think in this way?

PS: I want to do that because I want my app just to communicate only using RESTful API

Refer to this documentation: Firebase Auth REST API

Look for "Sign in with email / password" for example on how to sign in, Firebase answer with an ID_TOKEN that you have to provide when you issue HTTP REST queries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM