{"id":18569306,"url":"https://github.com/rayhanadev/replit-login","last_synced_at":"2025-05-15T21:31:17.913Z","repository":{"id":56707745,"uuid":"501752739","full_name":"rayhanadev/replit-login","owner":"rayhanadev","description":"Authenticate your Replit Users without ReplAuth.","archived":false,"fork":false,"pushed_at":"2022-10-28T22:03:28.000Z","size":84,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T14:13:17.474Z","etag":null,"topics":["login","replit","replit-api","replit-cli"],"latest_commit_sha":null,"homepage":"","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/rayhanadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-09T17:43:57.000Z","updated_at":"2024-07-01T05:04:29.000Z","dependencies_parsed_at":"2023-01-20T18:00:16.441Z","dependency_job_id":null,"html_url":"https://github.com/rayhanadev/replit-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayhanadev%2Freplit-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayhanadev","download_url":"https://codeload.github.com/rayhanadev/replit-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254425280,"owners_count":22069123,"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":["login","replit","replit-api","replit-cli"],"created_at":"2024-11-06T22:33:41.537Z","updated_at":"2025-05-15T21:31:17.887Z","avatar_url":"https://github.com/rayhanadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Replit Login\n\n_An unofficial way to authenticate your Replit users_\n\nAuthenticate Replit users in your projects without ReplAuth. This uses the actual Replit\nLogin API to authenticate `connect.sid` tokens and return whether a user would login.\n\n## Install\n\n```shell\n$ npm install replit-login\n$ yarn add replit-login\n```\n\n## Usage\n\n```js\nimport { login, logout, test } from 'replit-login';\n\nconst { username, password, captcha } = process.env;\n\nconst { token, message } = await login(username, password, captcha);\n\nconsole.log('Login:', token ? token : message);\nconsole.log('Test:', await test(token));\nconsole.log('Logout:', await logout(token));\n```\n\n_Note: You will need some frontend component that allows you to use the hCaptcha widget\nto get hCaptcha tokens. If you are just testing then you can use\n[this website](https://replit-captcha.rayhanadev.repl.co/). The tokens expire in 2\nminutes._\n\n## Personal Note\n\nIn the spirit of open source software I made this codebase public since it only\nabstracts API's that already exist without circumventing a captcha. Use it as a\ntool and abide by the Replit Terms of Service (see below). Improper use of the package can\nresult in bans on Replit and possibly legal action.\n\n## Legal\n\nFrom https://replit.com/site/terms as pertains to the use of this package. This is not\nthe entire ToS, simply snippets that reference important parts that I thought was\nrelevant.\n\n\u003e **Section 5 (Prohibited Actions), Item 10**\n\u003e\n\u003e Interfere with or disrupt the Services or create an undue burden on Replit's Service\n\u003e or the networks or services connected to Replit's Service;\n\n\u003e **Section 5 (Prohibited Actions), Item 11**\n\u003e\n\u003e Use the Service to attack or tamper with other websites, services, and individuals;\n\n\u003e **Section 5 (Prohibited Actions), Item 13**\n\u003e\n\u003e Launch any automated system, including without limitation, “robots”, “spiders”, or\n\u003e “offline readers” that access the Service in a manner that sends more request\n\u003e messages to the Replit servers in a given period of time than a human can reasonably\n\u003e produce in the same period by using a conventional online web browser.\n\u003e\n\u003e ...\n\u003e\n\u003e You agree not to collect or harvest any personally identifiable information,\n\u003e including account names, from the Service, nor to use the communication systems\n\u003e provided by the Services for any commercial solicitation purposes. You agree not to\n\u003e solicit, for commercial purposes, any users of the Service with respect to their\n\u003e content.\n\n\u003e **Section 5 (Prohibited Actions), Item 22**\n\u003e\n\u003e Repeatedly fork or clone projects to run or host the same code creating undue load\n\u003e on the Service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayhanadev%2Freplit-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayhanadev%2Freplit-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayhanadev%2Freplit-login/lists"}