Module method

Source
Expand description

PKCE code challenge methods.

As per the standard, there are two methods: plain and SHA-256.

The former is discouraged and is only used as the last resort, while the latter is recommended and is marked as the default.

§Examples

use pkce_std::method::Method;

let string = "S256";

let method: Method = string.parse().unwrap();

assert_eq!(method, Method::Sha256);

Structs§

Error
Represents errors that can occur when parsing PKCE methods.

Enums§

Method
Represents PKCE code challenge methods.

Constants§

PLAIN
The plain literal.
SHA256
The S256 literal.