phone-key
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Built With Stencil

PhoneKey Login Component

The PhoneKey login component is a platform egnostic web component that allows for the passing of login details securly using a QR code. AKA Scan to Login

PK-Login-Component Attributes and Events and Models

Attributes: 1- testMode (Type: Boolean. If false, no database connection will be established) 2- domain (Type: String. This is the domain you pass down to the component for the user to auth to)

<pk-login-component testMode="false" domain="www.example.com"><pk-login-component/>

Events: 1- login (Return: Object. When the user scans the QR code this event will be emitted which contains the required user data for login)

User Model: displayName: string; email: string; photoURL: string;

<pk-login-component (login)="onLogin()"><pk-login-component/>

Getting Started

Its super easy to use I swear. Here's what you need to do:

With a framework

npm i pk-login-component

Get in touch

Developer: Gabriel Cassim Twitter: @isscitified

Readme

Keywords

none

Package Sidebar

Install

npm i phone-key

Weekly Downloads

12

Version

0.0.1

License

MIT

Unpacked Size

9.48 MB

Total Files

89

Last publish

Collaborators

  • stoksweet