Syncs Firebase Authentication with GetStreamIO Chat Messaging.
This server application is built using Express.js and is designed to integrate Firebase users with the GetStream chat service. The application receives requests, processes the data, and responds accordingly. This document provides a guide for using the application, specifically focusing on the /chat/addAllFirebaseUsersToStream endpoint.
Returns a simple text response indicating that the server is running.
Adds all Firebase users to the GetStream chat service. It filters out the users that already exist in Stream and only adds the new users.
POST https://firebase-getstreamio.apps.johnseong.com/chat/addAllFirebaseUsersToStream
Content-Type: application/json
{
"serviceAccount": <your_firebase_service_account_json_object>,
"streamApiKey": "<your_getstream_api_key>",
"streamApiSecret": "<your_getstream_api_secret>"
}
200 OK
Content-Type: application/json
{
"message": "Users added successfully"
}
Or, in case of an error:
500 Internal Server Error
Content-Type: application/json
{
"message": "Internal Server Error",
"error": "<error_message>"
}