RegistryDashboard

Session

Top-level session conveniences on the client itself.

4 methods

client.login()

Email/password login that also installs session auth on the client.

emailrequiredstring

Account email.

passwordrequiredstring

Account password.

login(email, password)
typescript
import { OpsClient } from '@uluops/ops-sdk';

const client = new OpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.login('user@example.com', 'SecurePass123!');
Response Type
Promise<LoginResponse>

client.logout()

Revoke all sessions.

Requires authentication
logout()
typescript
import { OpsClient } from '@uluops/ops-sdk';

const client = new OpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.logout();
Response Type
Promise<void>

client.isAuthenticated()

Whether the client currently has credentials.

isAuthenticated()
typescript
import { OpsClient } from '@uluops/ops-sdk';

const client = new OpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.isAuthenticated();
Response Type
boolean

client.getAuthType()

The active auth method (api_key / session / none).

getAuthType()
typescript
import { OpsClient } from '@uluops/ops-sdk';

const client = new OpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.getAuthType();
Response Type
'api_key' | 'session' | 'none'