sphaso / firebase-haskell-client

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Have a module to generate tokens #11

Open sphaso opened 8 years ago

sphaso commented 8 years ago

Perhaps it could be a library on its own? If someone is using Firebase without Wreq they might just need this one piece and won't be willing (with good reason!) to import this whole lot of packages. e.g. see https://www.firebase.com/docs/security/libraries.html and https://www.firebase.com/docs/security/quickstart.html

bar9 commented 8 years ago

possibliy this one https://hackage.haskell.org/package/jwt

sphaso commented 8 years ago

Firebase uses JWT, so that library should do.

sphaso commented 8 years ago

We decided to take a look and contribute to haskell-JWT if possible

sphaso commented 8 years ago

Relevant docs: https://www.firebase.com/docs/rest/guide/user-auth.html#section-tokens-without-helpers