Annotated the classes with documentation and sources.
Some of the methods were deprecated so I changed them to the new. Some todo's were added too, but those will be removed when we will have authenticated endpoints.
[X] write tests
[X] Add dependency
io.jsonwebtokenjjwt0.12.6
[X] create login DTO
[X] create JWT utility class
[X] autowire it to the controller so we can add it to the login endpoint once it is created
-> added it into the service rather
Based on @AnnaUgrai 's provided code.
Annotated the classes with documentation and sources.
Some of the methods were deprecated so I changed them to the new. Some todo's were added too, but those will be removed when we will have authenticated endpoints.
[X] write tests
[X] Add dependency
[X] create login DTO
[X] create JWT utility class
[X] autowire it to the controller so we can add it to the login endpoint once it is created -> added it into the service rather
[ ] configure spring security -> NOT YET NEEDED
[ ] create jwt filter -> NOT YET NEEDED
[X] check what else we need