Skip to main content

decode_key

Function decode_key 

Source
pub fn decode_key(text: &str) -> Result<Vec<u8>, AuthError>
Expand description

Decodes a URL-safe base64 key string back to bytes.

ยงErrors

Returns AuthError::Malformed if the string is not valid base64.