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

Equivalent of getToken for generating JWT based on custom template #93

Open
rolandtolnay opened this issue Jan 9, 2025 · 0 comments
Open

Comments

@rolandtolnay
Copy link

Use case

After some back-and-forth debugging the example app, and creating a fork that merges in the favicon fixes, I managed to generate a token for our organization using the SDK.

This was passed back to us using the FutureOr<void> write<T>(String key, T value) persistor methods.

The token however doesn't follow the JWT template that we are looking for.
Other platform SDK's expose a getToken() method which allows passing in a custom template name and returns a token in that format.

Proposal

Spent some time searching the project for similar functionality, with no luck.

What would be your suggested approach for generating a JWT token with the Flutter SDK that follows one of our custom templates?

We need this to be able to authenticate correctly with our backend API's.

@rolandtolnay rolandtolnay changed the title Equivalent of getToken for generating JWT based a custom template Equivalent of getToken for generating JWT based on custom template Jan 9, 2025
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

1 participant