ezidam: oauth: authorize: generate and save authorization code

This commit is contained in:
Philippe Loctaux 2023-03-16 23:20:27 +01:00
parent 471e2fc740
commit bb4ff8a9f8
6 changed files with 33 additions and 4 deletions

View file

@ -15,6 +15,11 @@ impl Default for SecretString {
Self::new(64)
}
}
impl AsRef<str> for SecretString {
fn as_ref(&self) -> &str {
self.0.as_ref()
}
}
#[derive(Debug)]
pub struct Secret(Hash);