0.1.1 • Published 3 months ago

eight-auth v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

8x8 Authentication Widget

This webcomponent follows the open-wc recommendation.

Installation

npm i eight-auth

Usage

ES6 (Recommended)

import 'eight-auth'

// Use defined custom web component
<eight-auth
    clientKey=""
    defaultCountrySelected=""
    bannerSrc=""
    success=""
    error=""
>
</eight-auth>

UMD | CDN

index.html

<script type="module" src="<cdn-provider-url>/8x8/eight-auth.min.js"> </script>

<eight-auth
    clientKey=""
    defaultCountrySelected=""
    bannerSrc=""
    success=""
    error=""
>


</eight-auth>

CommonJS

    require('eight-auth);

    <eight-auth
        clientKey=""
        defaultCountrySelected=""
        bannerSrc=""
        success=""
        error=""
    >
    </eight-auth>

API Reference

PropertiesDescriptionDefaultRequired
clientKeyA public API Key to initialize Authentication Widget on browser""YesString
placeholderCustom placeholder for mobile number input fieldEnter Mobile NumberNoString
bannerSrcYour custom logo in embedding Authentication Widget"8auth.png"YesString/URL/Path
excludeExclude certain countries in country code selection""NoString
includeOnlyInclude only certain countries in country code selection""NoString
displayFlagOption if user wanted opted to display or hide country flag icons.trueNoBoolean
alertDelayTimeout delay for on-scrreen error or success messages. Value should be in ms3000NoInteger
inputCharLimitMax Length value for Mobile Number Input Field.20NoInteger
successRedirect URL once OTP Verification is successfulHost URLYesString/Url/Function
errorCallback handler if verification is unsuccessful or external service encountered an errorErrorYesString/Url/Function

Theming

The Authentication Widget already has built-in config for light or dark mode options. As for individual module or component, this is not currently supported.

Contributing

Refer to 8x8 Code of Conduct and Best Practices.

License

MIT

0.1.1

3 months ago

0.1.0

3 months ago

0.0.5

3 months ago

0.0.3

3 months ago

0.0.1

4 months ago