How to use kratos sdk to intitiate login flow and ...
# talk-kratos
f
How to use kratos sdk to intitiate login flow and submit it in reactjs ?
d
Hi, although I am doing server-side auth, the self-service flows are nicely documented and I found it a good starting point. For client side login, you can consult https://www.ory.sh/docs/kratos/self-service/flows/user-login#login-for-client-side-ajax-browser-clients It seems to me that the SDKs don't have a lot of examples so I ended up using the REST API instead which is easy enough to use so I can avoid SDKs altogether. That being said, there is a React example in the docs, maybe it helps: https://www.ory.sh/docs/getting-started/integrate-auth/react