whodis-react
Version:
React hooks and components for secure, best practices authentication in seconds
17 lines (16 loc) • 490 B
TypeScript
import { WhodisAuthTokenStorage } from '../../domain/WhodisAuthTokenStorage';
/**
* internal use only
*
* usecase:
* - you need the token for making authenticated requests
*
* action:
* - grabs the token from storage and refreshes it before responding if needed
*
* note:
* - if you need a _sync_ response, see if all you really need is `getTokenData`.
*/
export declare const getAuthableToken: ({ storage, }: {
storage: WhodisAuthTokenStorage;
}) => Promise<string | null>;