Skip to main content

parse_access_token

Function parse_access_token 

Source
fn parse_access_token(body: &[u8]) -> Result<String, String>
Expand description

Parses the token endpoint’s JSON, returning the access_token when the reply is a valid, unexpired grant (expires_in > 0, per Casdoor).