{"id":21619757,"url":"https://github.com/muthuri-dev/authentication-authorization-nestjs","last_synced_at":"2026-04-10T22:40:31.480Z","repository":{"id":246994087,"uuid":"824788139","full_name":"muthuri-dev/authentication-authorization-nestjs","owner":"muthuri-dev","description":"Performing auth using nestjs","archived":false,"fork":false,"pushed_at":"2024-07-06T00:50:15.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T21:29:55.528Z","etag":null,"topics":["authentication","authorization","graphql","guard","nestjs-backend","passport-jwt","passport-local"],"latest_commit_sha":null,"homepage":"","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/muthuri-dev.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":"2024-07-06T00:34:33.000Z","updated_at":"2024-07-09T19:48:05.000Z","dependencies_parsed_at":"2024-07-06T04:05:28.088Z","dependency_job_id":null,"html_url":"https://github.com/muthuri-dev/authentication-authorization-nestjs","commit_stats":null,"previous_names":["muthuri-dev/authentication-authorization-nestjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2Fauthentication-authorization-nestjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2Fauthentication-authorization-nestjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2Fauthentication-authorization-nestjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2Fauthentication-authorization-nestjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muthuri-dev","download_url":"https://codeload.github.com/muthuri-dev/authentication-authorization-nestjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244277186,"owners_count":20427313,"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":["authentication","authorization","graphql","guard","nestjs-backend","passport-jwt","passport-local"],"created_at":"2024-11-24T23:09:50.995Z","updated_at":"2025-10-12T06:18:05.891Z","avatar_url":"https://github.com/muthuri-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"200\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003eA progressive guide on nestjs authentication and authorization\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n\n## Description\n\nThe repo covers mostly on authenticaton and authorization using passportjs and jwt\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n### schema structure\n\n```bash\n  input CreateUserInput {\n  password: String!\n  username: String!\n}\n\ntype Login {\n  access_token: String!\n  user: User!\n}\n\ninput LoginDto {\n  password: String!\n  username: String!\n}\n\ntype Mutation {\n  createUser(userDto: CreateUserInput!): User!\n  login(loginDto: LoginDto!): Login!\n  signup(signupDto: LoginDto!): User!\n}\n\ntype Query {\n  user(username: String!): User!\n  users: [User!]!\n}\n\ntype User {\n  id: Int!\n  username: String!\n}\n```\n\n### connecting graphql\n\n```bash\n  @Module({\n  imports: [\n    GraphQLModule.forRoot\u003cApolloDriverConfig\u003e({\n      driver: ApolloDriver,\n      autoSchemaFile: join(process.cwd(), 'src/schema.gql'),\n      sortSchema: true,\n    }),\n    UsersModule,\n    AuthModule,\n  ],\n  providers: [ConfigService],\n})\nexport class AppModule {}\n\n```\n\n## Stay in touch\n\n- Author - [Kennedy Muthuri](https://muthuri.vercel.app/)\n\n## License\n\nNest is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuthuri-dev%2Fauthentication-authorization-nestjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuthuri-dev%2Fauthentication-authorization-nestjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuthuri-dev%2Fauthentication-authorization-nestjs/lists"}