Skip to main content

whoami

Function whoami 

Source
async fn whoami(
    __arg0: State<Arc<AppState>>,
    headers: HeaderMap,
) -> Result<Response, AppError>
Expand description

GET /whoami: 200 with shared::KeyStatus for a live key, 401 for every other, which is how a client tells a mistyped key from a good one.