svbackend / my-art-lib

Your own library of watched movies with crowd based recommendations and notifications about releases
https://mykino.top
GNU General Public License v3.0
2 stars 0 forks source link

Check is guest token not expired yet #56

Closed svbackend closed 5 years ago

svbackend commented 6 years ago

On the frontend we need to know is our guest session still alive or do we need refresh session token? So you need to implement simple functionality to check it.

Take as example UserCheckController and make ability to send request to api/guests/token/{token} and if guest session not expired yet (token found in GuestRepository) - then send response as empty json with 200 status. Otherwise, if token not found send 404 response. + Integrational tests for this 2 cases.