susunjadwal-backend icon indicating copy to clipboard operation
susunjadwal-backend copied to clipboard

Bug: User JWT has no expiry

Open Veivel opened this issue 7 months ago • 0 comments

This issue is a:

  • bug report

Current behavior:

If you decode the Bearer token used to make requests to the backend, you will get: image (data cropped for obvious reasons)

A quick search through the repository also shows no duration or exp values.

https://github.com/ristekoss/susunjadwal-backend/blob/00298676e75bdf9b71ab917767f8e224b27caf88/app/jwt_utils.py#L5-L13

https://github.com/ristekoss/susunjadwal-backend/blob/00298676e75bdf9b71ab917767f8e224b27caf88/app/utils.py#L11-L16

Requested behavior:

Generate every token with an expiry date.

Why this behavior is better:

Don't think this needs any explanation. https://gist.github.com/soulmachine/b368ce7292ddd7f91c15accccc02b8df

Note

If anyone wants to fix this, feel free to do so :)

Veivel avatar Jul 14 '24 05:07 Veivel