UserApi
API client for user profile management and account operations.
Overview
Provides methods for fetching user profiles, updating user information, changing passwords, deleting accounts, and listing users with admin privileges.
Basic Usage
import { HttpService, UserApi } from 'authsafe-ts';
const user = await oauthService.getUser();
const httpService = new HttpService(user?.access_token);
const userApi = new UserApi(httpService);
const profile = await userApi.getUser('user-123');