pub fn authenticate_from_request<T>(
firebase_auth: &FirebaseAuth,
req: &Request<T>,
) -> Result<Option<FirebaseUser>, String>
Expand description
Extracts an authenticated user from an HTTP request.
Note that the firebase_auth
crate has an Axum feature with similar
functionality, but we don’t use it because it doesn’t integrate well with the
RPC service.