{"id":13727413,"url":"https://github.com/kitze/graphql-user","last_synced_at":"2025-04-13T13:11:56.925Z","repository":{"id":44140707,"uuid":"188792919","full_name":"kitze/graphql-user","owner":"kitze","description":"Reusable utility methods for GraphQL authentication in Node.js","archived":false,"fork":false,"pushed_at":"2023-05-25T15:04:56.000Z","size":1717,"stargazers_count":105,"open_issues_count":17,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T04:12:29.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/graphql-user","language":"TypeScript","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/kitze.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":"2019-05-27T07:26:04.000Z","updated_at":"2025-01-18T16:08:31.000Z","dependencies_parsed_at":"2024-08-03T01:29:58.621Z","dependency_job_id":"95e30768-af40-4453-85da-40cb9a5aefa4","html_url":"https://github.com/kitze/graphql-user","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitze%2Fgraphql-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitze%2Fgraphql-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitze%2Fgraphql-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitze%2Fgraphql-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitze","download_url":"https://codeload.github.com/kitze/graphql-user/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717237,"owners_count":21150389,"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-08-03T01:03:54.760Z","updated_at":"2025-04-13T13:11:56.905Z","avatar_url":"https://github.com/kitze.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"## 👩‍✈️ graphql-user\n\nThis package is using the packages `bcrypt` and `jsonwebtoken` in order to provide some reusable functions for GraphQL authentication.\n\n### 🙋‍♂️ Made by [@thekitze](https://twitter.com/thekitze)\n\n### Other projects:\n\n- 🏫 [React Academy](https://reactacademy.io) - Interactive React and GraphQL workshops\n- 💌 [Twizzy](https://twizzy.app) - A standalone app for Twitter DM\n- 💻 [Sizzy](https://sizzy.co) - A tool for testing responsive design on multiple devices at once\n- 🤖 [JSUI](https://github.com/kitze/JSUI) - A powerful UI toolkit for managing JavaScript apps\n- 🎥 [Vlog](https://youtube.com/kitze) - My YouTube channel\n\n\u003ca href=\"https://zerotoshipped.com\"\u003e\u003cimg style=\"width:450px\" src=\"https://i.ibb.co/WKQPDv5/twitter-image.jpg\" alt=\"Zero To Shipped\"\u003e\u003c/a\u003e\n\nMake sure that your app has an `APP_SECRET` env variable.\n\nIt includes the [following functions](https://github.com/kitze/graphql-user/blob/master/src/index.ts):\n\n- `getUserId(context): string` - Returns the id from the currently logged-in user `context.request.get(\"Authorization\")`\n- `getToken(userId: string): string` - Returns a token by signing an object containing `{userId}` using the `APP_SECRET`\n- `getHashedPassword(password: string): string` - Returns a hashed version of a password\n- `comparePassword(password: string, comparePassword:string): boolean` - Compares a password and a hashed password\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitze%2Fgraphql-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitze%2Fgraphql-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitze%2Fgraphql-user/lists"}