{"id":14964188,"url":"https://github.com/halitsever/nuxt-telegram-auth","last_synced_at":"2025-04-13T00:05:26.046Z","repository":{"id":248589360,"uuid":"829139440","full_name":"halitsever/nuxt-telegram-auth","owner":"halitsever","description":"🔐 Telegram login widget integration for Nuxt 3","archived":false,"fork":false,"pushed_at":"2025-01-22T07:05:48.000Z","size":2758,"stargazers_count":48,"open_issues_count":11,"forks_count":28,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T00:05:20.200Z","etag":null,"topics":["auth","login","module","nuxt","nuxt-module","nuxt-modules","nuxt3","telegram","widget"],"latest_commit_sha":null,"homepage":"https://halitsever.github.io/nuxt-telegram-auth/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halitsever.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-15T20:55:58.000Z","updated_at":"2025-04-07T19:42:08.000Z","dependencies_parsed_at":"2024-07-16T00:17:49.394Z","dependency_job_id":"8cc85976-abab-4cd8-bcf2-d7293b429405","html_url":"https://github.com/halitsever/nuxt-telegram-auth","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.18181818181818177","last_synced_commit":"dd39167fbfae6379d5f980701c24a54a8d1fae51"},"previous_names":["halitsever/nuxt-telegram-auth"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halitsever%2Fnuxt-telegram-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halitsever%2Fnuxt-telegram-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halitsever%2Fnuxt-telegram-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halitsever%2Fnuxt-telegram-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halitsever","download_url":"https://codeload.github.com/halitsever/nuxt-telegram-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647302,"owners_count":21139086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","login","module","nuxt","nuxt-module","nuxt-modules","nuxt3","telegram","widget"],"created_at":"2024-09-24T13:32:42.237Z","updated_at":"2025-04-13T00:05:26.020Z","avatar_url":"https://github.com/halitsever.png","language":"TypeScript","readme":"\u003cp align=\"center\" class=\"logo-section\"\u003e\n\u003cimg src=\"https://i.ibb.co/MMcBdPN/nuxt-telegram-auth.png\" height=\"80\" width=\"80\"/\u003e\n\u003c/br\u003e\n\u003cimg src=\"https://halitsever-api.vercel.app/api/repo-title?title=Nuxt%20Telegram%20Auth\"\u003e\n\n\u003cp align=\"center\"\u003e\n🔐 A telegram login widget integration for nuxt 3\n\u003cbr\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cimg src=\"https://img.shields.io/github/sponsors/halitsever\"/\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca align=\"center\" href=\"https://halitsever.github.io/nuxt-telegram-auth\"\u003eDocumentation\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://halitsever-api.vercel.app/api/details\"/\u003e\n\u003c/p\u003e\n\n- 😌 [**Easy Integration**](#) - A telegram bot and this module enough for telegram login widget\n- 🔒 [**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 \u003ca href=\"https://gist.github.com/anonymous/6516521b1fb3b464534fbc30ea3573c2\"\u003eexample php code\u003c/a\u003e\n  \u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://halitsever-api.vercel.app/api/installation\"/\u003e\n  \u003c/p\u003e\n\nInstallation:\n\n```bash\nnpx nuxi module add nuxt-telegram-auth\n```\n\nThen you need add TELEGRAM_TOKEN to your runtimeConfig:\n\n```javascript\nruntimeConfig: {\n  TELEGRAM_TOKEN: \"my_fancy_bot_token\",\n}\n```\n\nafter that you can try on a page:\n\n```javascript\n\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cdiv\u003e\n      \u003cdiv v-if=\"session.loggedIn\"\u003e\n        \u003cNuxtLink @click=\"logout\" to=\"/\"\u003eLogout\u003c/NuxtLink\u003e\n        \u003ca\u003eHey you are logged in!\u003c/a\u003e\n        \u003cp\u003eSession: {{ session }}\u003c/p\u003e\n      \u003c/div\u003e\n      \u003cdiv v-else\u003e\n        \u003cTelegramLoginWidget telegram-login=\"my_bot\" @callback=\"testCallback\" /\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\nconst { clearSession, session } = useUserSession();\nconst logout = () =\u003e clearSession();\nconst testCallback = (user) =\u003e {\n  console.log(\"Custom callback function: \",user);\n};\n\u003c/script\u003e\n```\n\nfor more detailed information, please check the documentation page.\n\n\u003cp align=\"center\" href=\"https://github.com/halitsever/nuxt-telegram-auth/issues\"\u003e\n\u003cimg src=\"https://halitsever-api.vercel.app/api/issue\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://halitsever-api.vercel.app/api/sponsor\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://halitsever-api.vercel.app/api/license\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  MIT LICENSE | \u003ca href=\"https://halit.org\"\u003eHalit Sever\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalitsever%2Fnuxt-telegram-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalitsever%2Fnuxt-telegram-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalitsever%2Fnuxt-telegram-auth/lists"}