ptech-shell-dev
v1.6.7
Published
Standalone/mock shell service implementations for Module Federation apps.
Maintainers
Readme
ptech-shell-dev
Standalone/mock implementations for services defined in ptech-shell-sdk.
Install
npm i ptech-shell-dev ptech-shell-sdkUsage
import { initStandaloneServices } from 'ptech-shell-dev';
initStandaloneServices();MSAL adapter
import { registerService, TOKENS } from 'ptech-shell-sdk';
import { PublicClientApplication } from '@azure/msal-browser';
import { createMsalUserService } from 'ptech-shell-dev';
const msal = new PublicClientApplication(msalConfig);
registerService(
TOKENS.userService,
createMsalUserService({
msal,
defaultScopes: ['User.Read'],
loginMode: 'popup',
}),
);