pub async fn invalidate_session(
session: &Session,
pool: &Pool<Postgres>,
) -> SessionInvalided
Expand description
invalidate_session
If the session exists in the database will drop the session. This means the user will no longer be able use this session from any request.