Skip to content

Question: is is right csrf_token from the PKCE example is unused? #195

@LuckyTurtleDev

Description

@LuckyTurtleDev

I try to run the PKCE example from the doc.rs page.
But it get this warning

 1  warning: unused variable: `csrf_token`
   --> src/main.rs:38:20
    |
 38 |     let (auth_url, csrf_token, nonce) = client
    |                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_csrf_token`
    |
    = note: `#[warn(unused_variables)]` on by default

https://docs.rs/openidconnect/latest/src/openidconnect/lib.rs.html#191

Is the csrf_token is not needed anymore, or it just missing at the example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions