ezidam: oauth: authorize: generate and save authorization code
This commit is contained in:
parent
471e2fc740
commit
bb4ff8a9f8
6 changed files with 33 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue