Is there a way to get custom user model password before it gets hashed on Django

A custom user model was created in Django. After we create a user, we then send that user details to firebase:

# Sync User to FireBase Authentication:
@receiver(post_save, sender=Account)
def add_user_to_firebase(sender, created, instance, *args, **kwargs): 
  if created:
    auth.create_user(**{
            "uid":instance.firebase_uid,
            "display_name": instance.username, 
            "email": instance.email,
            "password": instance.password
        })

but this is where the issue comes in: when we send the password instance.password the password is then hashed before it gets sent to firebase. We want the unhashed password to get sent to firebase instead. Is that possible?

Back to Top