🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

dauth_widget

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

dauth_widget

dAuth widget for developers

unpublished
latest
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

dAuth Widget

Виджет авторизации через протокол dAuth для React-приложений.

Установка

npm install dauth_widget

Использование

import { DAuthWidget } from 'dauth_widget';

function App() {
  return (
    <DAuthWidget
      locale="ru"
      text={{
        buttonText: 'Войти через dAuth',
        confirmationText: 'Хотите войти на сайт'
      }}
    />
  );
}

Пропсы

ПропТипПо умолчаниюОписание
locale'ru' | 'en''en'Язык виджета
text{ buttonText?: string, confirmationText?: string }{}Кастомные тексты

События

Виджет отправляет событие dauth-request при клике на кнопку. Событие содержит следующие данные в detail:

  • domain: домен текущего сайта
  • message: сообщение для подтверждения авторизации

FAQs

Package last updated on 28 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts