Open caviles opened 6 years ago
Hi @caviles . To do this, without using ignoredPaths
and ignoredBasePath
, we can use something like ignoredExtensions
? What do you think?
You can always fork and add features to the library. When done, simply make a pull request 😄
@THPubs I like ignoredExtensions. I'll change it and do a pull request.
Thank you!
@caviles Great!
I've added an ignore path. Please feel free to add this you lib if you like. I also added one for a static base path (ie images, js, etc). Nice library!
//a fork of https://github.com/LeafyCode/express-firebase-auth/issues/6 //Cesar: //1/13/17 //added updates for ignoredPaths && ignoredBasePath const createFirebaseAuth = ({ ignoredUrls, ignoredPaths, //fork change - ca ignoredBasePath,//fork change - ca serviceAccount, firebase, checkEmailVerified = false, checkEmailVerifiedIgnoredUrls }) => { if (!serviceAccount && !firebase) { / eslint-disable no-console / console.log( '' ); console.log( 'Please provide the Firebase serviceAccount object or an initialized firebasee app!' ); console.log( '' ); / eslint-enable no-console / }
};
module.exports = { createFirebaseAuth };