minor refactoring #52
@@ -31,6 +31,7 @@ mod util {
|
||||
}
|
||||
|
||||
pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::JoseError> {
|
||||
/*
|
||||
let mut header = JwsHeader::new();
|
||||
header.set_token_type(TOKENTYPE);
|
||||
|
||||
@@ -61,6 +62,8 @@ pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::Jos
|
||||
}
|
||||
Err(e) => Err(josekit::JoseError::InvalidClaim(e.into())),
|
||||
}
|
||||
*/
|
||||
icarus_models::token::create_token(provided_key, &String::from(MESSAGE), &String::from(ISSUER), &String::from(AUDIENCE))
|
||||
}
|
||||
|
||||
pub fn verify_token(key: &String, token: &String) -> bool {
|
||||
|
Reference in New Issue
Block a user