Determines if an authentication token is actually valid.
The request to the associated endpoint.
The project's database.
Whether the session cookie has a value that has actually been registered in the database.
session
Determines if an authentication token is actually valid.