https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
b

boundless-hydrogen-45841

10/25/2021, 10:15 AM
When I am using kratos v0.7.6 on the login flow the flow_id keeps on regenerating again and again. The page also keeps refreshing. I am using react.
p

proud-plumber-24205

10/25/2021, 11:16 AM
This sounds like a redirect loop
How do you implement kratos in your react application? Could you maybe provide a summary and the kratos configs?
b

boundless-hydrogen-45841

10/25/2021, 11:28 AM
These are the two files you can check it
p

proud-plumber-24205

10/25/2021, 11:35 AM
I think your react useEffect is reloading the page, also you don't need to use
window
here. Please check out this example https://github.com/ory/kratos-react-nextjs-ui/blob/master/pages/registration.tsx
b

boundless-hydrogen-45841

10/25/2021, 11:39 AM
thanks @proud-plumber-24205!
❤️ 1
p

proud-plumber-24205

10/25/2021, 11:41 AM
Also remember that you do not need redirects in SPAs anymore Check out all the guides for "AJAX" clients or Client-side browser clients https://www.ory.sh/kratos/docs/self-service/flows/user-registration#registration-for-client-side-ajax-browser-clients
b

boundless-hydrogen-45841

10/25/2021, 11:50 AM
where I can view the source code ory/kratos-client (npm)
*for
p

proud-plumber-24205

10/25/2021, 11:54 AM
b

boundless-hydrogen-45841

10/26/2021, 1:16 PM
hey when I was going through the golang docs for selfservice flow they are not updated with the latest version. Can you help me
p

proud-plumber-24205

10/27/2021, 4:57 PM
Could you please send me a link of the docs you were going through?
10 Views