'Firebase Serve: Error occurred while parsing your function triggers
Im trying to use firebase serve in order to get my localhost url I can't seem to move past this issue. Here is my index.js
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
// Database reference
const dbRef = admin.firestore().doc('tokens/demo');
// Twitter API init
const TwitterApi = require('twitter-api-v2').default;
const twitterClient = new TwitterApi({
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
});
// STEP 1 - Auth URL
exports.auth = functions.https.onRequest((request, response) => {});
// STEP 2 - Verify callback code, store access_token
exports.callback = functions.https.onRequest((request, response) => {});
// STEP 3 - Refresh tokens and post tweets
exports.tweet = functions.https.onRequest((request, response) => {});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|