add to `auth` object for `password` authentication?

11 views
Skip to first unread message

spo...@gmail.com

unread,
May 9, 2016, 9:27:17 PM5/9/16
to Firebase + EmberJS
Hi,

For `password` authentication, is there any way to add additional attributes to `auth` object (beside default `uid` and `provider`)?  I have a `user` table with a key that matches `auth.uid` and would like to add a protected `admin` attribute there so I can use it in some FB rules.

Is this possible with `password` authentication, or do I need to use `custom` or some other authentication mechanism?

Thanks,
John

Jacob Wenger

unread,
May 10, 2016, 1:06:23 AM5/10/16
to spo...@gmail.com, Firebase + EmberJS
You'll have to use custom authentication and mint custom tokens on your own server. You don't have control over the auth variable when using password authentication.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase + EmberJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-embe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages