{"id":24988460,"url":"https://github.com/lit-protocol/lit-login-server","last_synced_at":"2026-03-05T09:33:14.787Z","repository":{"id":235616158,"uuid":"596228209","full_name":"LIT-Protocol/lit-login-server","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-20T22:46:06.000Z","size":495,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T23:33:00.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LIT-Protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2023-02-01T18:31:46.000Z","updated_at":"2024-07-30T02:38:03.000Z","dependencies_parsed_at":"2025-04-12T00:08:13.639Z","dependency_job_id":"53d540f8-34d0-41ea-bdfd-0c3484f3704e","html_url":"https://github.com/LIT-Protocol/lit-login-server","commit_stats":null,"previous_names":["lit-protocol/lit-login-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIT-Protocol/lit-login-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-login-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-login-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-login-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-login-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/lit-login-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-login-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-02-04T12:04:22.609Z","updated_at":"2026-03-05T09:33:14.764Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lit Login Server\n\nThis server is dedicated to handling social login flows when authenticating with PKPs tied to social login accounts like Google and Discord.\n\nThe server is live at [https://lit-login-server.herokuapp.com/](https://lit-login-server.herokuapp.com/).\n\n\u003cbr\u003e\n\n## 💻 Dev setup\n\nNote: The server uses Redis to store temporary data. You'll need to [install Redis](https://redis.io/docs/getting-started/) on your machine and run it in the background.\n\n1. Clone this repo and install dependencies:\n\n```bash\ngit clone https://github.com/LIT-Protocol/lit-login-server\n\ncd lit-login-server\n\npnpm install\n```\n\n2. Create `.env` in the root directory, and add the following environment variables:\n\n```bash\nGOOGLE_CLIENT_ID=355007986731-llbjq5kbsg8ieb705mo64nfnh88dhlmn.apps.googleusercontent.com\nGOOGLE_CLIENT_SECRET=\u003cAsk team member\u003e\n\nDISCORD_CLIENT_ID=1052874239658692668\nDISCORD_CLIENT_SECRET=\u003cAsk team member\u003e\n\nPORT=3300\nDOMAIN=localhost:3300\nORIGIN=http://localhost:3300\n```\n\n3. Start your development server:\n\n```bash\npnpm dev\n```\n\nMake sure that your Redis server is also running.\n\n\u003cbr\u003e\n\n## 🚀 Deployment\n\nThe server is hosted on Heroku. You'll need access to the Lit Protocol Heroku account to manage the server.\n\n\u003cbr\u003e\n\n## 🔁 Available Endpoints\n\n| HTTP Verb | Path                   | Description                                                                          |\n| --------- | ---------------------- | ------------------------------------------------------------------------------------ |\n| GET       | /auth/discord          | Redirect user to Discord authorization URL                                           |\n| GET       | /auth/google           | Redirect user to Google authorization URL                                            |\n| GET       | /auth/discord/callback | Handles callback from Discord then redirects user back to the specified redirect URI |\n| GET       | /auth/google/callback  | Handles callback from Google then redirects user back to the specified redirect URI  |\n\n\u003cbr\u003e\n\n## 🎈 Error Codes\n\nIf an error occurs, the server will redirect to an error page (hosted by either the server or the initial app that is calling the endpoints) and append an error code to the URL.\n\n| Error Code           | Description                                                                                                   |\n| -------------------- | ------------------------------------------------------------------------------------------------------------- |\n| invalid_params       | Missing `state` and/or `app_redirect` param in the request URL when calling `/auth/discord` or `/auth/google` |\n| missing_state        | Missing `state` param in the callback request URL                                                             |\n| missing_redirect     | Unable to retrieve the `app_redirect` from Redis during the OAuth callback flows                              |\n| invalid_access_token | Unable to verify Discord authorization code and retrieve the Discord access token                             |\n| token_error          | Unable to verify Google authorization code and get the Google ID token                                        |\n\nAdditional error codes may appear at the `/auth/discord/callback` endpoint. These are returned by Discord and are documented [here](https://discord.com/developers/docs/topics/opcodes-and-status-codes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-login-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Flit-login-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-login-server/lists"}