thousands-megabyte-94914
09/11/2023, 7:04 PMmagnificent-energy-493
urls.default_redirect_url unless the query parameter ?refresh=true was set.
The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. If this endpoint is opened as a link in the browser, it will be redirected to selfservice.flows.login.ui_url with the flow ID set as the query parameter ?flow=.
The relevant section from our API docs:
https://www.ory.sh/docs/kratos/reference/api
If a valid user session
exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter
`?refresh=true` was set.
So it should work out of the box AFAICT 🤔