1.3.0 • Published 5 years ago

@team-decorate/vue-line-login v1.3.0

Weekly downloads
47
License
MIT
Repository
github
Last release
5 years ago

vue-line-login

Installation

With npm:

npm install @team-decorate/vue-line-login

Usage

<template>
    <line-login-button 
    client-id="11111"
    callback-uri="http://localhost:8080"
    client-secret="secret"
    @result="result" 
    add-friend 
    friend-required></line-login-button>
</template>

<script>
import '@team-decorate/dist/vue-line-login.css'
import VueLineLogin from '@team-decorate/vue-line-login'

export default {
    components: {
        VueLineLogin
    },
    
    methods: {
        result(res) {
            console.log(res)
        }
    }
}
</script>

Available props

PropTypeDefaultDescription
client-idStringline client id
client-secretStringline client secret
callback-uriStringline redirect uri
add-friendBooleanfalseShow Add Friend
friend-requiredBooleanfalseFail if you do not add friends
login-textStringLINEでログイン
friend-error-textString友達に追加してくださいError text when not added to a friend

Events

EventOutputDescription
resultresultObject such as line access token
1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago