Widget slug and injection point details
Available injection points for this widget slug
auth-setup-2fa-after-formauth-setup-2fa-before-formauth-setup-2fa-bottomauth-setup-2fa-topFiles where this widget slug is used
SetupTwoFactorForm.tsxHow plugins can inject widgets into this page
To inject a widget into this page, create a widgets.json file in your plugin's Frontend/ directory:
{
"id": "my-plugin-widget",
"component": "my-widget.html",
"enabled": true,
"priority": 100,
"page": "auth-setup-2fa",
"location": "auth-setup-2fa-after-form",
"size": "full"
}This page supports the following injection points. Use the location property in your widget configuration:
Set the size property to control widget width:
"full" - Full width (default)"half" - Half width (2 per row)"third" - One-third width (3 per row)"quarter" - One-quarter width (4 per row)Widgets automatically receive context information accessible via:
const context = window.StormNodes?.widgetContext || ; const userUuid = context.userUuid; const serverUuid = context.serverUuid;