@datalayer/core
Version:
[](https://datalayer.io)
23 lines (22 loc) • 1.05 kB
TypeScript
import { MembershipsResponse, UserMeResponse, WhoAmIResponse } from '../../models/IAM';
/**
* Get current authenticated user profile
* @param token - Authentication token (required)
* @param baseUrl - Base URL for the API (defaults to production IAM URL)
* @returns Current user profile information
*/
export declare const me: (token: string, baseUrl?: string) => Promise<UserMeResponse>;
/**
* Get current user identity information
* @param token - Authentication token (required)
* @param baseUrl - Base URL for the API (defaults to production IAM URL)
* @returns Current user identity and profile information
*/
export declare const whoami: (token: string, baseUrl?: string) => Promise<WhoAmIResponse>;
/**
* Get current user identity information
* @param token - Authentication token (required)
* @param baseUrl - Base URL for the API (defaults to production IAM URL)
* @returns Current user identity and profile information
*/
export declare const memberships: (token: string, baseUrl?: string) => Promise<MembershipsResponse>;