Skip to main content
Version: Next

JavaScript

To install the JavaScript SDK, run:

npm install --save @ory/hydra-client

Configuration#

Basic configuration#

import { Configuration, PublicApi, AdminApi } from '@oryd/hydra-client'
const hydraPublic = new PublicApi(
new Configuration({
basePath: 'https://public.hydra:4444/'
})
)
const hydraAdmin = new AdminApi(
new Configuration({
basePath: 'https://public.hydra:4445/'
})
)

API Usage#

We recommend using TypeScript with auto-completion as API usage is not well documented currently.

Last updated on by aeneasr