plugins: refactory to use default export for new backend system
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Camila Belo <camilaibs@gmail.com> Co-authored-by: Johan Haals <johan.haals@gmail.com> Co-authored-by: Philipp Hugenroth <philipph@spotify.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -53,7 +53,8 @@ export type AuthHandlerResult = {
|
||||
};
|
||||
|
||||
// @public
|
||||
export const authPlugin: () => BackendFeature;
|
||||
const authPlugin: () => BackendFeature;
|
||||
export default authPlugin;
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export type AuthProviderConfig = AuthProviderConfig_2;
|
||||
|
||||
@@ -15,12 +15,10 @@
|
||||
*/
|
||||
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { authPlugin } from '../src';
|
||||
import { authModuleGoogleProvider } from '@backstage/plugin-auth-backend-module-google-provider';
|
||||
|
||||
const backend = createBackend();
|
||||
|
||||
backend.add(authPlugin);
|
||||
backend.add(authModuleGoogleProvider);
|
||||
backend.add(import('../src'));
|
||||
backend.add(import('@backstage/plugin-auth-backend-module-google-provider'));
|
||||
|
||||
backend.start();
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
export { authPlugin } from './authPlugin';
|
||||
export { authPlugin as default } from './authPlugin';
|
||||
export * from './service/router';
|
||||
export type { TokenParams } from './identity';
|
||||
export * from './providers';
|
||||
|
||||
Reference in New Issue
Block a user