makerspace / makeradmin

Stockholm Makerspace member administration and store.
https://docs.makeradmin.se/
21 stars 16 forks source link

Accessy token expired at check is too narrow #251

Open emanuelen5 opened 2 years ago

emanuelen5 commented 2 years ago

Token might expire directly after the check, but before an API call has been made. https://github.com/makerspace/makeradmin/blob/master/api/src/multiaccessy/accessy.py#L211

It would be better to check that it is valid at least some time forward from now on, so that it can be refreshed beforehand in case it is needed.