Open ikaem opened 5 months ago
as a developer, i want to have a route that will
accept request and return response with new access token and refresh token cookie if request is valid
to do this, it will need to validate data from the validated cookie
it will need to extract auth and player id
it will need to search both in db
if some does not exist, or player and auth dont match, it should return bad request response
otherwise, it should generate new cookie and access token to return with the response
no data in the response, just 200 and headers are set and cookie is set
tech strategy
stop at test to return bad request if the token inside refresh token cookie is not valid
as a developer, i want to have a route that will
accept request and return response with new access token and refresh token cookie if request is valid
to do this, it will need to validate data from the validated cookie
it will need to extract auth and player id
it will need to search both in db
if some does not exist, or player and auth dont match, it should return bad request response
otherwise, it should generate new cookie and access token to return with the response
no data in the response, just 200 and headers are set and cookie is set
tech strategy