Hi,
I'm having an error: panicked at 'time not implemented on this platform', library/std/src/sys/wasm/../unsupported/time.rs:31:9 while trying to implement the authentication flow using the openidconnect-rs crate,
let token_response_future = use_future(cx, (), |_| async move {
token_response(client, auth_code).await
});
match token_response_future.value() {
Some(token_response) => {
let token_response_string =
serde_json::to_string(token_response).unwrap();
token_response_state.write().token_response =
Some(token_response_string);
nav.push(Route::Home {});
rsx! { div { "Some token response has been decoded" } }
}
None => rsx! { div { "Signing in... Please wait" } },
}
The error specifically appears when I'm trying to write to the token_response state. My guess is that the openidconnect crate uses std::time and that makes the error appear. Another weird thing is that I'm redirected to the home page but the Some token response has been decoded still appears