We can pass the auth tokens to our front app via post message, which will also allow us to pass route names to navigate on it
8 lines
120 B
TypeScript
8 lines
120 B
TypeScript
export const isInFrame = () => {
|
|
try {
|
|
return window.self !== window.top;
|
|
} catch (e) {
|
|
return true;
|
|
}
|
|
};
|