vue-social-login
v1.0.7
Published
pre configured button for login with social accounts
Downloads
27
Maintainers
Readme
Install
npm
npm i vue-social-login
<SocialLogin
title="Signin with google"
:clientId="googleClientId"
@onSuccess="onSuccessOfGoogle"
@onError="onErrorOfGoogle"
>
</SocialLogin>
onSuccessOfGoogle, onErrorOfGoogle methods are your defined vue methods. googleClientId is your google client id.
Props
Props for Button
title
(optional)
will be title of the button (default will be Login with Google)
clientId
(required)
Google client id need to pass with component. i.e <CLIENT-ID>.apps.googleusercontent.com
Only value before .apps.googleusercontent.com need to pass. ;)
Events
onSuccess
onError
Slots
prepend
Add slot before button text
append
Add slot after button text
Why vue-social-login button ?
vue-social-login is focused on speed and simplicity.
THANKS FOR USING , LOVE FROM INDIA