pub fn get_sessions(
    db: &Database,
    auth: &Auth,
    info: &PaginationParams
) -> Result<UserSessionResponse, (i32, &'static str)>
Expand description

/sessions

queries db for all sessions owned by the User associated with auth

breaks up the results of that query as defined by info

Returns Result