auth-react: completely remove path option
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -17,7 +17,6 @@ export function CookieAuthRefreshProvider(
|
||||
// @public
|
||||
export type CookieAuthRefreshProviderProps = {
|
||||
pluginId: string;
|
||||
path?: string;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
|
||||
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user