Fix demo deserialisation

This commit is contained in:
Simon Bihel 2022-08-22 11:38:18 +01:00
parent d8251bdb59
commit 8d74d51d50
No known key found for this signature in database
GPG Key ID: B7013150BEAA28FD

View File

@ -46,7 +46,7 @@ pub fn siwe() -> Html {
#[derive(Deserialize)]
struct CallbackParams {
code: String,
_state: String,
// state: String,
}
#[function_component(Callback)]
@ -71,7 +71,7 @@ pub fn callback() -> Html {
let (_auth_url, _csrf_token, nonce) = client
.authorize_url(
CoreAuthenticationFlow::AuthorizationCode,
CsrfToken::new_random,
|| CsrfToken::new("state".to_string()),
|| Nonce::new("nonce".to_string()),
)
.add_scope(Scope::new("openid".to_string()))