whodis-react-storage-browser
Version:
React hooks and components for secure, best practices authentication in seconds
13 lines (12 loc) • 515 B
TypeScript
/**
* loads and exposes the cookies required for authentication from the server-side request
* - exposes both the `authorization` and `synchronization` tokens required for secure and consistent authentication in the web environment
* - enables isomorphically using whodis-react-storage-browser functions across both clientside and serverside environments
*/
export declare const loadAuthenticationFromSSRReq: ({ req, }: {
req: {
headers: {
cookie?: string;
};
};
}) => void;