firebase-tokenize - a command-line utility for super simple token creation

76 views
Skip to first unread message

Abe Haskins

unread,
May 29, 2015, 11:09:16 PM5/29/15
to fireba...@googlegroups.com
Hey Firebuddies,

I wanted to share something I just hacked up - firebase-tokenize a command-line utility that lets you generate tokens super easy. 

It works like this...

firebase-tokenize -n yourFirebase '{"uid": "america", "is": "bestest"}'

And it spits out a token! Simple, eh? It has options for expirations, not-befores, debug/admin tokens, etc. 

Best of all, since firebase-tokenize uses your existing stored credentials from firebase-tools, you don't even need to log in.

Check it out! You've got literally nothing to lose.

npm install -g firebase-tokenize

Remember, using a Firebase secret for authentication, even on servers is not good! Generate a custom token with a custom server flag and write your rules against that instead :) 

Best,
Abe

P.S. All credit goes to the Portland International Airport - without their free Wi-Fi and delayed flights, we wouldn't have this tool.

Tom Larkworthy

unread,
May 29, 2015, 11:49:31 PM5/29/15
to fireba...@googlegroups.com

Oh I have really wanted something better than my manual node script. +1

--
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/c932118b-507e-46db-bb3b-bc842f647c49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kato Richardson

unread,
May 30, 2015, 10:53:53 AM5/30/15
to fireba...@googlegroups.com
Nice one, Abe! You've one-upped my old web-based tool for messing with tokens. I'll have to add this one to my toolbox for sure.

Thank goodness for Portland and weather.

Jacob Wenger

unread,
Jun 1, 2015, 8:53:11 PM6/1/15
to fireba...@googlegroups.com
This is awesome! Thanks Abe!

Reply all
Reply to author
Forward
0 new messages