I'm kind of new to firebase security, and web development in general, but I am generating JWT's on the server-side of my Rails app. However, to pass them to firebase, it seems I have to pass the token (which is stored on the users table in the db) in a view with this Javascript code:
var ref = new Firebase('https://mysite.firebaseio.com/');
ref.auth('<%= @user.auth_token %>');
Is this how you are supposed to handle auth tokens? I thought it might defeat the point, since the auth tokens are then viewable to the users from the page source.