mtjp9_rs_auth0_client/
lib.rs1use rand::{distr::Alphanumeric, Rng};
2
3pub mod dbconnections;
4pub mod domain;
5pub mod error;
6pub mod oauth;
7pub mod organizations;
8pub mod tickets;
9pub mod token;
10pub mod users;
11
12use crate::domain::Domain;
13use crate::token::BearerToken;
14
15pub struct Auth0ClientSettings {
16 pub domain: Domain,
17 pub token: BearerToken,
18}
19
20pub fn random_password() -> String {
22 rand::rng()
23 .sample_iter(&Alphanumeric)
24 .take(64)
25 .map(char::from)
26 .collect()
27}