otpless_auth
Installation
Add the following to Cargo.toml:
otpless_auth = "0.1.0"
How to use
Import the get_otpless_user function
extern crate otpless_auth;
use otpless_auth::api::otpless::get_otpless_user;
Pass the jwt token to get_otpless_user it will return Result<OtplessUserDetail, OtplessError>
let token: String = String::from( "xyztoken");
let user_detail = get_otpless_user(&token);