flutter icon indicating copy to clipboard operation
flutter copied to clipboard

Add support for JWT

Open rolandgeider opened this issue 2 years ago • 3 comments

Depends on https://github.com/wger-project/wger/issues/1047

rolandgeider avatar May 20 '22 16:05 rolandgeider

I would like to work on this issue. Can you elaborate the issue more.

saket2001 avatar Sep 07 '22 05:09 saket2001

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

rolandgeider avatar Sep 07 '22 17:09 rolandgeider

https://github.com/wger-project/wger/pull/1134

rolandgeider avatar Oct 05 '22 19:10 rolandgeider