Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please provide a documented, generic alias to firebase #22

Open
robx opened this issue Sep 16, 2019 · 1 comment
Open

please provide a documented, generic alias to firebase #22

robx opened this issue Sep 16, 2019 · 1 comment

Comments

@robx
Copy link
Contributor

robx commented Sep 16, 2019

I'd like to reuse the firebase decoder for a generic JWT-authenticated backend (postgrest specifically), which uses the standard exp, iat, user_id fields. However, this feels wrong with the existing API, because:

  • it's not firebase
  • the API docs don't state what the JWT is actually expected to look like

I'd suggest defining generic = firebase and documenting the behaviour of generic. What do you think?

@simonh1000
Copy link
Owner

I have not yet found a definition of a generic JWT. Indeed the whole point is that you can add what you like, to facilitate the backend at the time that the user sends something to it. iat is clearly a standard field, and there are perhaps others. But beyond that I offered a couple that I developed in specific cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants