79212948

Date: 2024-11-21 21:16:22
Score: 0.5
Natty:
Report link

You might want ot use beforeSignIn wich is a blocking function. It will block signing if an exception is thrown. You can still us it to execute some other stuff.

exports.myFunction = functions.auth.user().beforeSignIn((user, context) => {
 // your logic, user.uid available
});

Doc : https://firebase.google.com/docs/auth/extend-with-blocking-functions

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jerem