nulled_auth

Crates.ionulled_auth
lib.rsnulled_auth
version0.1.2
sourcesrc
created_at2022-05-04 13:24:22.878231
updated_at2022-05-06 19:18:32.680706
descriptionA wrapper for nulled.to's updated authentication system implemented in rust
homepage
repository
max_upload_size
id580415
size12,766
(1ti)

documentation

README

Nulled Auth

A wrapper for nulled.to's updated authentication system implemented in rust

Example

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
}
Commit count: 0

cargo fmt