Skip to content

9.1.7: Adding the login endpoint code issue #12

@charlielu05

Description

@charlielu05

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions