danielblagy/budget-app

implement v1/access/logout

Closed this issue · 3 comments

  • invalidate token by storing it in cache until it expires (blacklist approach)

Blocked by #21

  • cover access service with unit tests
  • do #23 in this branch
  • add documentation

FOR QA:

  1. implement POST v1/access/logout - logs out the user
  2. fix authorization bug: the error was not propagated properly from handler.authorize convenience function
  3. implemented #23, now if token has expired, status 401 unauthorized is returned with a message token has expired: not authorized