Skip to main content

parse_token_response

Function parse_token_response 

Source
pub fn parse_token_response(
    body: &str,
) -> Result<OAuthTokenResponse, SecurityError>
Expand description

Parses a token-endpoint JSON response body.

ยงErrors

Returns SecurityError::OAuth when JSON is invalid or access_token is missing.