Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-13T22:55:37.000Z (11 days ago)
- Last Synced: 2025-01-17T19:07:28.367Z (7 days 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.04 MB
- Stars: 21
- Watchers: 1
- Forks: 6
- Open Issues: 6
-
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