On page 277 of the printed book, listing 9.15 of the login function code
fn issue_token()....
let state = serde_json... ().expect("Failed to serialize") state");
local_paseto(...)
Apart from the obvious typo, I can't for the life of me find any reference to this local_paseto function.
There is 0 mention of the paseto library, it just turns up all of a sudden with no explanation.
The result of this is that the code doesn't compile and I'm unable to test this at all.