autologin for email authentication?

47 views
Skip to first unread message

samp...@gmail.com

unread,
Jun 28, 2015, 8:06:51 PM6/28/15
to fireba...@googlegroups.com
Is it possible to auth with ref.authWithOAuthToken if the user has previously used email to log into firebase? e.g.:

    ref.authWithOAuthToken('password', 'TOKEN_STRING_GENERATED_FROM_PREV_EMAIL_LOGIN', function(err, authData) {...

Michael Lehenbauer

unread,
Jun 28, 2015, 8:21:45 PM6/28/15
to fireba...@googlegroups.com
No, but you could use authWithCustomToken() with the "token" in the "authData" you got when you originally called AuthWithPassword().  Will that work?

-Michael



On Sun, Jun 28, 2015 at 1:36 PM, <samp...@gmail.com> wrote:
Is it possible to auth with ref.authWithOAuthToken if the user has previously used email to log into firebase? e.g.:

    ref.authWithOAuthToken('password', 'TOKEN_STRING_GENERATED_FROM_PREV_EMAIL_LOGIN', function(err, authData) {...

--
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.
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/eb8094b3-f29f-434d-bf9b-edc517d00ef9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

samp...@gmail.com

unread,
Jun 29, 2015, 2:26:48 PM6/29/15
to fireba...@googlegroups.com
Thanks Michael, that worked!
Reply all
Reply to author
Forward
0 new messages