npm i @skill-wallet/auth --save
import { InitSwAuth } from '@skill-wallet/auth';
InitSwAuth();
npm i @skill-wallet/auth --save
import { InitSwAuth } from '@skill-wallet/auth';
ngOnInit(): void { InitSwAuth(); }
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
npm i @skill-wallet/auth --save
import { InitSwAuth } from '@skill-wallet/auth';
InitSwAuth();
NOTE:
Sometimes in order to achieve your desired style you might need to override Mui styles. You can see which styles you need to override by inspecting the web component and it's elements in your browser Developer Tools.partner-key
The key you are given after signing a Partner's Agreementuse-dev
Set to 'true' to use the 'Mumbai' TestNetuse-button-options
If set to 'true' a dropdown will pop up when hovering over the Button. Currently, the only option is 'Logout'.onSkillwalletLogin
Dispatched when the user has 'Logged in'. This means that their skillWallet has been successfully retrieved and stored in the session storage (key is skillWallet).onSkillWalletActivated
Dispatched when a SkillWallet is successfully activated. This happens after the QR Code is scanned from the mobile app.initSkillwalletAuth
Dispatched after initialization - signifies that the web component has read the partner-key and is ready to use.