0.1.16 • Published 3 months ago

tz-web-login v0.1.16

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

Tranzak web login for mini programmes

This plugin is to be used by tranzak SAAS mini programmes to enable users to use mini programmes from the web as well from the mobile application

Usage

Installation

npm install tz-web-login

In your main.js file, import and register the plugin as shown below

import  {  createApp  }  from  'vue'
import  TzWebLogin from  'tz-web-login';
const  myApp  =  createApp(App);
myApp.use(TzWebLogin);
myApp.mount('#app')

Implementation

<tz-web-login  locale="fr"  v-if="showPopUp" @close="showPopUp" @login-successful="getUserInfo" />

<tz-button  @click="showPopUp  =  true">Login</tz-button>

Props

PropDescriptionValue
localeThis is the language to be used when rendering th componentString (en OR fr), default en

Events

EventDescription
@login-successfulThis is emitted when the user logs in successfully. It returns an object with token and user. token holding the user's token and user holding the user's information
@closeThis will be triggered when user closed the modal from the 'x' icon.
0.1.16

3 months ago

0.1.14

3 months ago

0.1.15

3 months ago

0.1.11

3 months ago

0.1.12

3 months ago

0.1.13

3 months ago

0.1.10

4 months ago

0.1.8

4 months ago

0.1.9

4 months ago

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

1 year ago

0.0.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago