{"id":18562494,"url":"https://github.com/replit/repl-auth-node","last_synced_at":"2025-05-15T17:36:07.549Z","repository":{"id":56713867,"uuid":"523138397","full_name":"replit/repl-auth-node","owner":"replit","description":"Nodejs client for Repl Auth functions!","archived":false,"fork":false,"pushed_at":"2023-07-19T20:44:30.000Z","size":77,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-17T12:45:37.156Z","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/replit.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}},"created_at":"2022-08-09T23:33:21.000Z","updated_at":"2023-02-22T03:44:50.000Z","dependencies_parsed_at":"2024-12-26T11:25:32.966Z","dependency_job_id":"a98aa717-77d7-4b9d-b1ad-caea6f7cfe15","html_url":"https://github.com/replit/repl-auth-node","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/replit%2Frepl-auth-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Frepl-auth-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Frepl-auth-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Frepl-auth-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/repl-auth-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388446,"owners_count":22063056,"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":[],"created_at":"2024-11-06T22:09:54.277Z","updated_at":"2025-05-15T17:36:07.495Z","avatar_url":"https://github.com/replit.png","language":"JavaScript","readme":"# Repl Authentication\nRepl Authentication is a simple way to allow users to log in, and access their information.\n\n## Get started\nEnsure that a user is logged in with replit following [our docs](https://docs.replit.com/hosting/authenticating-users-repl-auth)\n```js\nconst express = require('express'); \nconst { getUserInfo } = require('../index.js')\n\nconst app = express();\napp.use(express.static('public'));\n\napp.get('/', async function(req, res) {\n  const userInfo = getUserInfo(req)\n  console.log(userInfo)\n}\n```\n\n## Docs\n\n\u003e `getUserInfo(Request req)`\n\nGets all user info. Returns UserInfo object.\n```js\nconst userInfo = getUserInfo(req)\n```\n\nUserInfo object:\n```\nUserInfo {\n  id?: string;\n  name?: string;\n  bio?: string;\n  url?: string;\n  profileImage?: string;\n  roles?: Array\u003cstring\u003e\n  teams?: Array\u003cstring\u003e\n}\n```\n\n\n## Tests\n```sh\nnpm run test\n```\nThen login and assure that it says \"server tests passed\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Frepl-auth-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Frepl-auth-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Frepl-auth-node/lists"}