VivienG-Dev / Card-It

1 stars 0 forks source link

Fix the "No token provided" #13

Closed VivienG-Dev closed 3 months ago

VivienG-Dev commented 3 months ago

There is a problem when the user stay logged but the cookie/token is not valid anymore, the user then get the message "No token provided" but is still kind of logged.

Probably add a condition where if the "No token provided" is returned, logout the user and redirect him to the index.