I am trying to follow the documentation of ory login flow and in the "implementing the login" flow https://www.ory.sh/docs/hydra/guides/login#implementing-the-login-html-form page there is a node example, and on the last import line it imports AdminApi from @ory/hydra-client
import { AdminApi } from "@ory/hydra-client"
but I did the exact thing on in my express/node code, but got the error :
"@ory/hydra-client" has no exported member 'AdminApi'
I am using the newest version of @ory/hydra-client which I assume should be the version to use?
(link : https://www.npmjs.com/package/@ory/hydra-client?activeTab=readme)
does anyone have an idea on why this is happening?
You can use
OAuth2Api
instead:Replace
HYDRA_PUBLIC_URL
andHYDRA_ADMIN_URL
with URLs pointing to your own Hydra endpoints.