Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.1.7: Adding the login endpoint code issue #12

Open
charlielu05 opened this issue Dec 13, 2024 · 1 comment
Open

9.1.7: Adding the login endpoint code issue #12

charlielu05 opened this issue Dec 13, 2024 · 1 comment

Comments

@charlielu05
Copy link

charlielu05 commented Dec 13, 2024

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.

@e0
Copy link

e0 commented Jan 10, 2025

Just ran into this as well and it's the last straw for me trying to follow the code examples. This book has nice content design but quality of code examples is probably the worst I've seen in a programming book. Will just try to read through rest of the book without coding and move on to axum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants