Expand description
Helpers
Functions§
- code_
challenge - Generates the S256 PKCE code challenge for
verifier. - convert_
json_ to - Converts plain JSON to a struct/enum that impl’s serde’s Deserialize. Uses serde_json::from_str under the hood
- decode_
jwt - Decodes a JWT without verification
- generate_
code_ verifier - Generates a random string as the code_verifier. Uses generate_random under the hood.
- generate_
nonce - Generates a random string as the nonce. Uses generate_random under the hood.
- generate_
random - Generates a random string using rand::thread_rng. You can pass in the bytes to generates
- generate_
state - Generates a random string as the state. Uses generate_random under the hood.
- get_
s256_ jwk_ thumbprint - Gets S256 thumbprint of a JWK JSON.
- now
- Gets a Unix Timestamp in seconds. Uses
SystemTime::now