https://github.com/halitsever/nuxt-telegram-auth
🔐 Telegram login widget integration for Nuxt 3
https://github.com/halitsever/nuxt-telegram-auth
auth login module nuxt nuxt-module nuxt-modules nuxt3 telegram widget
Last synced: 3 months ago
JSON representation
🔐 Telegram login widget integration for Nuxt 3
- Host: GitHub
- URL: https://github.com/halitsever/nuxt-telegram-auth
- Owner: halitsever
- License: mit
- Created: 2024-07-15T20:55:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-22T07:05:48.000Z (5 months ago)
- Last Synced: 2025-04-13T00:05:20.200Z (3 months ago)
- Topics: auth, login, module, nuxt, nuxt-module, nuxt-modules, nuxt3, telegram, widget
- Language: TypeScript
- Homepage: https://halitsever.github.io/nuxt-telegram-auth/
- Size: 2.63 MB
- Stars: 48
- Watchers: 1
- Forks: 28
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🔐 A telegram login widget integration for nuxt 3
![]()
![]()
- 😌 [**Easy Integration**](#) - A telegram bot and this module enough for telegram login widget
- 🔒 [**Auth Endpoint**](#) - Nuxt Telegram Module provides a api endpoint for checking is user's cookie valid or not: /api/telegram/session, this method integrated from official example php code
![]()
Installation:
```bash
npx nuxi module add nuxt-telegram-auth
```Then you need add TELEGRAM_TOKEN to your runtimeConfig:
```javascript
runtimeConfig: {
TELEGRAM_TOKEN: "my_fancy_bot_token",
}
```after that you can try on a page:
```javascript
const { clearSession, session } = useUserSession();
const logout = () => clearSession();
const testCallback = (user) => {
console.log("Custom callback function: ",user);
};```
for more detailed information, please check the documentation page.
![]()
![]()
![]()
MIT LICENSE | Halit Sever