factoriauth/src/auth.rs

14 lines
238 B
Rust
Raw Normal View History

2024-02-10 10:51:56 +01:00
pub struct Authenticator {
// TODO
}
impl Authenticator {
pub fn new(/* database credentials ? */) -> Self {
Self {}
}
pub fn create_user_token(username: &str, password: &str) -> String {
todo!()
}
}