Skip to main content

verify_credentials

Function verify_credentials 

Source
pub async fn verify_credentials(
    access_token: &str,
) -> Result<String, StartupError>
Expand description

Verify OAuth credentials by calling the X API /2/users/me endpoint.

Returns the authenticated user’s username on success.