Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In this repo contains that sample to use custom auth tokens to Sign In Firebase with Huawei ID. As is known, Firebase…
Make sure you have Node.js and run npm install and npm start.
If the user accepts the authorization request, you can get the user information, including the ID token. The ID token is in JWT format and it contains user information on payload section. (Display name, picture, token expire time etc.)
Firstly we check if user already exists in Firebase. If user doesn’t exist we will create new user based on unionID using Firebase Admin SDK else we will get the user to generate an custom token.