I am trying to use firebase-admin
and found some inconsistency.
I am trying to write some auth code with google-auth-library
and firebase-admin
and then got stuck on where to get client_id, client_secret. I feel it is something I can get from admin
after initializeApp
but failed to figure out how.
const {OAuth2Client} = require('google-auth-library');
const admin = require('firebase-admin');
admin.initializeApp();
const client = new OAuth2Client(
GOOGLE_CLIENT_ID, ------> somewhere in `admin`?
GOOGLE_CLIENT_SECRET,
GOOGLE_CALLBACK_URL
);
THanks