Function iqps_backend::routing::handlers::profile
source · pub async fn profile(
__arg0: Extension<Auth>,
) -> Result<(StatusCode, BackendResponse<ProfileRes>), AppError>
Expand description
Returns a user’s profile (the JWT and username) if authorized and the token is valid. Can be used to check if the user is logged in.