encode token as hex

This commit is contained in:
Kai Jan Kriegel 2023-02-08 21:22:36 +01:00
parent 49fa24f1f9
commit 0b997547ed

View File

@ -361,8 +361,7 @@ impl Authentication for FabFire {
Ok(_) => {
match apdu_response.body {
Some(data) => {
let authid = String::from_utf8(data)
.unwrap()
let authid = hex::encode(data)
.trim_matches(char::from(0))
.to_string();
let prov = ThisProvider::<AuthId>::with(&authid);