@authid/web-component

1.3.1 • Public • Published

authID integration as a Web Component

This authID Web Component provides a convenient integration overlay. The overlay hovers over your website in desktop environment and occupies maximum space in mobile environment.

This integration is the most universal one as it can be used with any frontend technology.

API

  • authid-component - a custom HTML component with the following attributes:
    • data-url - required parameter with operation/transaction URL received from authID,
    • data-target - force selection of either mobile or desktop integration variant, auto is the default. NOTE: this parameter is obsolete, and it has no effect at the moment.
    • data-webauth="true" - enable automatic handling of Passkey features.
    • data-control="true" - enable advanced control features.

Example

Please see example.html for full details.

<script src="path-to/authid-web-component.js"></script>
<authid-component data-url="https://id.authid.ai/?...."></authid-component>

Package Sidebar

Install

npm i @authid/web-component

Weekly Downloads

130

Version

1.3.1

License

Apache-2.0

Unpacked Size

18.4 kB

Total Files

6

Last publish

Collaborators

  • mikeryan
  • authid_andrey
  • chriswhite72