Generates a random 43-octet URL safe string according to the RFC recommendation. Reference: https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
()
| 460 | /// |
| 461 | /// Reference: https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 |
| 462 | fn generate_code_verifier() -> String { |
| 463 | URL_SAFE.encode(rand::random::<[u8; 32]>()).replace('=', "") |
| 464 | } |
| 465 | |
| 466 | /// Base64 URL encoded sha256 hash of the code verifier. |
| 467 | /// |
no outgoing calls
no test coverage detected