Function minerva_session::repository::remove_session
source · [−]pub async fn remove_session(
tenant: &str,
token: String,
pool: DBPool,
mongo: MongoDatabase,
redis: &RedisClient
) -> Result<(), Status>
Expand description
Removes a user session from non-relational database, given a session token. The token must be the actual ID for the session object on the non-relational database, encoded as Base64. If it was found, remove it altogether from the non-relational database.