Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        



🔐 A telegram login widget integration for nuxt 3









Documentation



- 😌 [**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




Logout
Hey you are logged in!

Session: {{ session }}







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