#axum_session_auth with v0.6.1?
1 messages · Page 1 of 1 (latest)
Have you looked at the auth example? It uses axum_session_auth
https://github.com/DioxusLabs/dioxus/blob/main/examples/fullstack-auth/src/auth.rs
Fullstack app framework for web, desktop, mobile, and more. - DioxusLabs/dioxus
I have; the build, unfortunately, fails for me as follows:
dx --version
dioxus 0.6.1 (was built without git repository)
15:42:20 [cargo] error[E0432]: unresolved import web_sys::DomRectReadOnly
--> packages/web/src/events/visible.rs:11:28
|
11 | use web_sys::{CustomEvent, DomRectReadOnly, Event, IntersectionObserverEntry};
| ^^^^^^^^^^^^^^^ no DomRectReadOnly in the root
15:42:20 [cargo] error[E0599]: no method named bounding_client_rect found for struct IntersectionObserverEntry in the current scop
--> packages/web/src/events/visible.rs:41:25
|
41 | &self.event.bounding_client_rect(),
| ^^^^^^^^^^^^^^^^^^^^ method not found in IntersectionObserverEntry
15:42:20 [cargo] error[E0599]: no method named intersection_rect found for struct IntersectionObserverEntry in the current scop
--> packages/web/src/events/visible.rs:52:50
|
52 | Ok(dom_rect_ro_to_pixel_rect(&self.event.intersection_rect()))
| ^^^^^^^^^^^^^^^^^
|
help: there is a method intersection_ratio with a similar name
|
52 | Ok(dom_rect_ro_to_pixel_rect(&self.event.intersection_ratio()))
| ~~~~~~~~~~~~~~~~~~
15:42:20 [cargo] error[E0599]: no method named root_bounds found for struct IntersectionObserverEntry in the current scop
--> packages/web/src/events/visible.rs:62:26
|
62 | match self.event.root_bounds() {
| ^^^^^^^^^^^ method not found in IntersectionObserverEntry
I have a very similar project that works for me in 0.5.7; after adjusting to 0.6.1, it builds fine, but it just fails with:
15:48:14 [dev] Tracing is now on
15:48:15 [dev] Verbose logging is now on
15:48:17 [dev] [500] /
15:48:18 [dev] [500] /
15:48:18 [dev] [500] /favicon.ico
as I am new to dioxus, I don't even know how to begin to debug this. Any tips would be greatly appreciated
the browser simply reports that the connection failed:
Backend connection failed. The backend is likely still starting up. Please try again in a few seconds. Error: Other(
hyper_util::client::legacy::Error(
Connect,
ConnectError(
"tcp connect error",
Os {
code: 61,
kind: ConnectionRefused,
message: "Connection refused",
},
),
),
)
published the code that works with 0.5.7 here: https://github.com/malmstroem/glsweb . My guess is that my main function (https://github.com/malmstroem/glsweb/blob/main/src/main.rs):
fn main() {
#[cfg(feature = "web")]
launch(ui::App);
#[cfg(feature = "server")]
server::server_start(ui::App)
}
needs to be refactored since using only the dioxus::launch command works in 0.6.1 but is missing the authentication layer.
I think that error is fixed by https://github.com/DioxusLabs/dioxus/pull/3359
Thanks @reef sparrow , I can confirm that the error indeed is fixed, awesome!