@authid/web-component
v1.4.0
Published
authID integration as a Web Component
Downloads
290
Readme
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 eithermobile
ordesktop
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>