Firebase Authentication Node Js

76 views
Skip to first unread message

Paulo Cauca

unread,
Nov 1, 2016, 10:36:32 AM11/1/16
to Firebase Google Group
Hello, Folks, 
First let me intruduce my self, my name is Paulo Cauca I'm from Brazil and work in a telecom company.
I'm new in Firebase, and I would like some help to undertending how I can do authentication on Firebase with Nodejs with forms or facebook.

I was reading that it is not possible to do this in Firebase 3.0, but how can I get the  firebase.auth.currentUser in server side if I do authenticantion in view layer?


Thank you for all help.


Atte.
Paulo Cauca

Jacob Wenger

unread,
Nov 1, 2016, 1:11:01 PM11/1/16
to fireba...@googlegroups.com
Hey Paulo,

I would suggest reading up on our docs on how to verify ID tokens on a server. When a user is signed in on a client device (mobile phone, website, etc.), they have an ID token which indicates what their uid (unique identifier) is. You can send that ID token to your backend, decode it, and figure out who that user is.

A lot of the authentication limitations of the Firebase 3.x.x SDKs have been resolved since they've been released and you should be able to do most of the things you reasonably would want to do. If you still have questions or concerns, try giving us your use case and we can help you out further.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/810ff4ef-8814-41ca-9208-4b02aa71c2ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paulo Cauca

unread,
Nov 2, 2016, 6:36:35 PM11/2/16
to Firebase Google Group
Thank you Jacob for help me.

I was looking for the tokens on a server, it's not dificult to implement.
My project is about Sport events, the users will be subscribe on a plataform and create a new event, and the users will be able to subscribe in the event.

I'm thinking to create /users withe all users informations an /events with events informations. But I don't know how I will be do a relationship with users and event ( many to many ).

Tks again ,
Paulo Cauca

Em terça-feira, 1 de novembro de 2016 15:11:01 UTC-2, Jacob Wenger escreveu:
Hey Paulo,

I would suggest reading up on our docs on how to verify ID tokens on a server. When a user is signed in on a client device (mobile phone, website, etc.), they have an ID token which indicates what their uid (unique identifier) is. You can send that ID token to your backend, decode it, and figure out who that user is.

A lot of the authentication limitations of the Firebase 3.x.x SDKs have been resolved since they've been released and you should be able to do most of the things you reasonably would want to do. If you still have questions or concerns, try giving us your use case and we can help you out further.

Cheers,
Jacob
On Tue, Nov 1, 2016 at 4:06 AM, Paulo Cauca <paulo...@gmail.com> wrote:
Hello, Folks, 
First let me intruduce my self, my name is Paulo Cauca I'm from Brazil and work in a telecom company.
I'm new in Firebase, and I would like some help to undertending how I can do authentication on Firebase with Nodejs with forms or facebook.

I was reading that it is not possible to do this in Firebase 3.0, but how can I get the  firebase.auth.currentUser in server side if I do authenticantion in view layer?


Thank you for all help.


Atte.
Paulo Cauca

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages