Function create_rust_app::auth::controller::get_sessions
source · 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
- Ok(
UserSessionResponse
)- the results of the query paginated according to
info
- the results of the query paginated according to
- Err([
StatusCode
], [Message
])