auth-react: completely remove path option

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-04-09 17:04:03 +02:00
parent ed4e394308
commit 633d30ee8d
3 changed files with 4 additions and 5 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
---
'@backstage/plugin-auth-react': patch
'@backstage/plugin-auth-react': minor
---
Update the default cookie base path and create a experimental redirect to root and app mode components, the components authenticate and keep a cookie refresh loop on the client side.
**BREAKING**: Removed the path option from `CookieAuthRefreshProvider` and `useCookieAuthRefresh`.
A new `CookieAuthRedirect` component has been added to redirect a public app bundle to the protected one when using the `app-backend` with a separate public entry point.
-1
View File
@@ -17,7 +17,6 @@ export function CookieAuthRefreshProvider(
// @public
export type CookieAuthRefreshProviderProps = {
pluginId: string;
path?: string;
children: ReactNode;
};
@@ -27,8 +27,6 @@ import { useCookieAuthRefresh } from '../../hooks';
export type CookieAuthRefreshProviderProps = {
// The plugin ID used for discovering the API origin
pluginId: string;
// The path used for calling the refresh cookie endpoint, default to '/.backstage/auth/v1/cookie'
path?: string;
// The children to render when the refresh is successful
children: ReactNode;
};