When I am using kratos v0.7.6 on the login flow th...
# talk-kratos
b
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
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
These are the two files you can check it
p
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
thanks @proud-plumber-24205!
❤️ 1
p
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
where I can view the source code ory/kratos-client (npm)
*for
p
b
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
Could you please send me a link of the docs you were going through?