#system #updated #implemented #nulled #display-welcome

nulled_auth

为nulled.to更新后的认证系统实现的Rust包装器

3个版本

0.1.2 2022年5月6日
0.1.1 2022年5月4日
0.1.0 2022年5月4日

#635 in 认证

MIT 许可证

12KB
229

Nulled Auth

为nulled.to更新后的认证系统实现的Rust包装器

示例

fn main() {
   let auth_key = String::from("auth_key");
   let program_id = String::from("program_id");
   let program_secret = String::from("program_secret");
   let minimum_likes = 0;
   let minimum_extra = nulled_auth::Ranks::Nova;
   let display_welcome = false;

   let authentication = nulled_auth::Authenticate::new(
       program_id,
       program_secret,
       minimum_likes,
       minimum_extra,
       display_welcome
   );
   
   let is_authenticated: (bool, String) = authentication.authenticate(auth_key).await;
   let success = is_authenticated.0;
   let message = is_authenticated.1; // Message can contain error message
}

依赖项

~7–23MB
~322K SLoC