jolly-ocean-26344
04/02/2025, 1:28 AM@ory/elements-react
does, and the @ory/integrations/next
method doesn't actually work for middleware with the .ory
route to get session data because you can't call relative urls from middleware
• https://github.com/ory/elements/blob/main/examples/nextjs-app-router/app/page.tsx
• https://www.ory.sh/docs/getting-started/integrate-auth/nextjsbland-eye-99092
04/02/2025, 2:59 PMjolly-ocean-26344
04/02/2025, 4:50 PM@ory/elements-react/client
but that only exists in the -pr
version (0.0.0-pr.4a28a8f
), not @latest
-- might be worth pushing a 0.0.1
😛bland-eye-99092
04/02/2025, 5:01 PM@next
tag of that packagejolly-ocean-26344
04/03/2025, 9:03 PM@ory/client
package and not the @ory/client-fetch-typescript
package correct? I also don't see any types for sms otp verification in the client-fetch-typescript package but that's irrelevant anyway if we can't use that package in the first placebland-eye-99092
04/03/2025, 10:00 PM@ory/client-fetch
is a more modern version of @ory/client
(with axios). They're both maintained, and should be up-to-date.
However, if you're using Kratos standalone, that's what @ory/kratos-client-fetch
is for. However, the @ory/client-fetch
should also work on a standalone Kratos for most use cases.jolly-ocean-26344
04/09/2025, 11:23 PM@ory/client
? I can't seem to figure out how to do things like ory.createBrowserLoginFlow
-- when I run this, I get some HTML response that I can't extract and the call fails with "invalid json"bland-eye-99092
04/10/2025, 12:52 PMheaders: {
Accept: "application/json",
},
To the configuration of the API.jolly-ocean-26344
04/10/2025, 5:46 PMbillowy-airplane-97030
04/12/2025, 2:43 PMapi.ts
file.
What's a little bit annoying is that I didn't know about this since both packages point to the same repo.
In future, how would a newcomer figure out what's the latest client library?bland-eye-99092
04/12/2025, 4:38 PM@ory/client
uses axios (that cannot be changed) and @ory/client-fetch
uses the default fetch library provided by the platform.
The use of axios led to a bunch of issues, and the "new" client-fetch resolves the specific axios related issues.billowy-airplane-97030
04/13/2025, 9:38 AMjolly-ocean-26344
04/13/2025, 6:44 PM