flutter
flutter copied to clipboard
Add support for JWT
Depends on https://github.com/wger-project/wger/issues/1047
I would like to work on this issue. Can you elaborate the issue more.
Sure. Currently the server generates a token for each user and that can be used for authentication when using the REST API. The problem is that this token is valid forever and this is not the best from a security perspective. Ideally we would use JSON web tokens which have a limited lifetime and get renewed when using the application.
While this needs support on the backend, the JWT is a standard so we can mock the response and work with that
https://github.com/wger-project/wger/pull/1134