0.0.1 • Published 4 years ago
phone-key v0.0.1
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
0.0.1
4 years ago