You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is an example URL from google oauth docs -https://oauth2.example.com/callback#access_token=4/P7q7W91&token_type=Bearer&expires_in=3600 How this should be parsed?
I image route definition similar to this:
#[route("/callback#:fragment")]
and then fragment should be something that implements FromQuery? Right?
here is an example URL from google oauth docs -https://oauth2.example.com/callback#access_token=4/P7q7W91&token_type=Bearer&expires_in=3600 How this should be parsed?
I image route definition similar to this:
#[route("/callback#:fragment")]
and then fragment should be something that implements FromQuery? Right?
That route definition looks correct. Fragments may look like a query, but we don't want to force them to look like a traditional query segment (name=bla&surname=bla). We can use a trait with an identical signature to FromQuery called FromFragment or just accept T: FromStr<Err = core::convert::Infallible> instead of FromQuery and FromFragment
Implicit grant flow returns tokens in the fragment; auth code flow returns them in the query string. I tried this workaround in the hope that the first render would take place before the fragment was removed by Dioxus, but no luck:
use web_sys::window;let hash = window().unwrap().location().hash().unwrap();let params_parsed:HashMap<String,String> = serde_urlencoded::from_str(&hash).unwrap();
Problem
The dioxus router removes any hash segments when parsing the route.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The hash segment should remain
Environment:
master
nightly
web
Questionnaire
The text was updated successfully, but these errors were encountered: