Join Slack
Powered by
How to use kratos sdk to intitiate login flow and ...
# talk-kratos
f
flat-rose-25983
11/17/2023, 1:27 PM
How to use kratos sdk to intitiate login flow and submit it in reactjs ?
d
delightful-engineer-9139
11/17/2023, 1:39 PM
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
Open in Slack
Previous
Next