dappsnation / akita-ng-fire

Akita ❤️ Angular 🔥 Firebase
MIT License
131 stars 27 forks source link

Custom Key For Users when Using Auth #193

Closed randallmeeker closed 3 years ago

randallmeeker commented 3 years ago

I have previously implemented auth where it creates a profile in the users collection. Is there a way to utilize the users email address ad the idKey for this instead of the uid?

fritzschoff commented 3 years ago

Oh sorry missed that one. Will have a look tomorrow CET

fritzschoff commented 3 years ago

with the current version it isn't possible. You would need to have a flag or a custom function for the signup func. That gets the value from the user object from firebase and sets the wanted value as id. Also you would need to handle this specific case for the auth providers which at that point, would make sense to write your own little services

randallmeeker commented 3 years ago

cool, thanks for the info. love this library