UNPKG

@aws-amplify/core

Version:

Core category of aws-amplify

15 lines (14 loc) • 586 B
import { AmplifyContext } from '../../context/AmplifyContext'; /** * Clears the cached auth credentials of the given {@link AmplifyContext} * instead of the global one. * * @param ctx - The explicit {@link AmplifyContext} whose credentials are cleared. */ export declare function clearCredentials(ctx: AmplifyContext): Promise<void>; /** * Clears the cached auth credentials of the global {@link AmplifyContext}. * Before `Amplify.configure()` has run this resolves harmlessly, matching the * pre-context behavior. */ export declare function clearCredentials(): Promise<void>;