Function minerva_session::repository::recover_session
source · [−]pub async fn recover_session(
tenant: &str,
token: String,
mongo: MongoDatabase,
redis: &RedisClient
) -> Result<Session, Status>
Expand description
Recovers a user’s session from the non-relational database, given a
previously generated token. The token must be the actual ID for the session
object on the non-relational database, encoded as Base64. If it was found,
returns the Session
object with the session information that was stored.