UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

21 lines 1.15 kB
import { NavigateFunction } from 'react-router'; export declare function storeLastPlace(): void; export declare const ONE_SAGE_REDIRECT_COOKIE_KEY = "org.sagebionetworks.cookies.redirect-after-login"; export declare const getCookieDomain: () => ".synapse.org" | ".dev.sagebase.org" | undefined; export declare function storeRedirectURLForOneSageLoginAndGotoURL(href: string): void; export declare function processRedirectURLInOneSage(): boolean; /** * Returns to the route in localStorage saved when `storeLastPlace` was called, * typically before jumping from an app to OneSage for authentication, or before * jumping from OneSage to an external IdP (e.g. Google) for authentication. * * @return boolean indicating if a redirect occurred */ export declare function restoreLastPlace(navigate?: NavigateFunction, fallbackRedirectUrl?: string): boolean; /** * Hook to detect if the current page is framed (i.e. in an iframe). If so, it will attempt to break out of the frame. * See SWC-6294 * @returns true if the page is framed and not sandboxed */ export declare function useFramebuster(): boolean; //# sourceMappingURL=AppUtils.d.ts.map