We have many apps that have their own login screen...
# talk-kratos
c
We have many apps that have their own login screens but would use the same Kratos instance, is this ok? Is there a way of initiating flows without all the redirects? Our React application at the minute doesn't have this behaviour.
m
Hello Bradley,
We have many apps that have their own login screens but would use the same Kratos instance, is this ok?
that is ok!
Is there a way of initiating flows without all the redirects?
There is a way for API clients that will receive a JSON response instead of a redirection, but that feature still needs documentation. Thats all I could find in a quick skim, I hope that helps.
Copy code
If the `Accept` header is set to `application/json`, the login flow will be returned as JSON instead.
I will see to include this in my recent docs PR and update it here: https://www.ory.sh/docs/kratos/concepts/browser-redirect-flow-completion#json since the feature is implemented, just not documented here.
c
Thanks for that @User 🙂