Function generate_session

Source
pub async fn generate_session(
    session: Session,
    creds: Credentials,
    pool: &Pool<Postgres>,
) -> GenerateSessionReturn
Expand description

generate_session will create a auth session based on the provided credentials and add it to the actix_session. This auth session can now be checked on subsequent calls to for example validate_session