rest - How to have logout for a stateless RESTful API -


so title says, i'm working on stateless restful api. authentication, i'm planning on using json web tokens. simplicity task.

my 1 challenge, however, figuring out how log users out. on 1 hand, tokens have timeouts, , once timed out boom, no longer valid, easy logout. if want user able have logout button can press log them out.

this desire have stateless server conflicts i'm trying do. thing can think of having value in databasee, version #, included in jwt hash, , every login/logout, gets changes. way hashes no longer match. i'm not sure if that's effective way job done.

any suggestions appreciated.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -