UNPKG

447 BTypeScriptView Raw
1import { GetCurrentUserOutput } from '../types';
2/**
3 * Gets the current user from the idToken.
4 *
5 * @param input - The GetCurrentUserInput object.
6 * @returns GetCurrentUserOutput
7 * @throws - {@link InitiateAuthException} - Thrown when the service fails to refresh the tokens.
8 * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
9 */
10export declare const getCurrentUser: () => Promise<GetCurrentUserOutput>;