Dec 31, 2020
maulin13 t9da5a1d6a
. c/kTzq75ft/31-upd-transformational-reconstruction-by-shingo-sato-pdf-numismatici-storyboa
Jan 17, 2021
maulin13 t9da5a1d6a
. c/kTzq75ft/31-upd-transformational-reconstruction-by-shingo-sato-pdf-numismatici-storyboa
Q:
Signature authorization does not work with firebase function
I use firebase cloud functions for making webhook. I can make function using firebase tools.
But i have problem with signature authorization.
It shows following errors.
My codes are below.
const Functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
const functions = new Functions({
functions: {
auth: './signInWithEmailAndPassword.js'
}
});
exports.catchError = (event, context, callback) => {
// handler to be invoked when there are errors in the functions
console.error(context.error);
callback(context.error.message, [])
};
exports.helloWorld = (event, context, callback) => {
console.log('Received event: %j', event);
console.log('Received context: %j', context);
console.log('Received callback: %j', callback);
callback(null, 'Hello world');
};
A:
Please make sure you have:
installed the latest version of firebase-admin (2.4.0 at the time of writing)
upgraded to the latest version of firebase-functions (2.3.0 at the time of writing)
The error indicates that there's an issue with the auth code of your function. Make sure you're referencing the latest versions of these packages and that you're in the same directory as your function.
After law enforcement and the public found out earlier this be359ba680
Related links:
コメント