We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onTelegramAuth
vue-telegram-login
node
npm
yarn
Relevant code or config
<template> <!-- Callback mode --> <vue-telegram-login mode="callback" telegram-login="YourTelegramBot" @callback="onTelegramAuth" /> </template> <script> import {vueTelegramLogin} from 'vue-telegram-login' export default { name: 'your-component', components: {vueTelegramLogin}, methods: { onTelegramAuth (user) { console.log(user) } } } </script>
I named my callback function as I mentioned.
That caused a nasty error, something like Object(...) is not a function.
Object(...) is not a function
I found that the problem happens when you name your callback function same as you do here.
I had to name my callback function differently.
Make an explicit warning to not to do so.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue-telegram-login
version: 2.1.0node
version: 10.15.3npm
(oryarn
) version: 6.9.0Relevant code or config
What you did:
I named my callback function as I mentioned.
What happened:
That caused a nasty error, something like
Object(...) is not a function
.Problem description:
I found that the problem happens when you name your callback function same as you do here.
I had to name my callback function differently.
Suggested solution:
Make an explicit warning to not to do so.
The text was updated successfully, but these errors were encountered: