pub async fn get_internal_id(
__arg0: State<AppState>,
req: Request,
next: Next,
) -> Result<Response>
Expand description
Axum middleware for retrieving the internal ID for the current user.
If it passes through authentication but fails to retrieve the internal ID of the user,
it’ll simply return a AuthError::UserNotFound
error.