{"id":30172031,"url":"https://github.com/pointblankdev/lambda-auth","last_synced_at":"2025-08-11T22:48:30.654Z","repository":{"id":46834570,"uuid":"374851940","full_name":"pointblankdev/lambda-auth","owner":"pointblankdev","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-23T20:26:49.000Z","size":501,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T02:37:49.105Z","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/pointblankdev.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}},"created_at":"2021-06-08T02:02:28.000Z","updated_at":"2021-11-23T20:26:52.000Z","dependencies_parsed_at":"2022-08-21T03:40:56.387Z","dependency_job_id":null,"html_url":"https://github.com/pointblankdev/lambda-auth","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/pointblankdev/lambda-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Flambda-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Flambda-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Flambda-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Flambda-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointblankdev","download_url":"https://codeload.github.com/pointblankdev/lambda-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Flambda-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269969920,"owners_count":24505446,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-08-11T22:48:26.723Z","updated_at":"2025-08-11T22:48:30.641Z","avatar_url":"https://github.com/pointblankdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-auth\n\n## Usage\n\nUse lambda-auth to `verify()` RS256 JWTs and decode their accessToken.\n\n```ts\nconst { verify } = require('@pointblankdev/lambda-auth');\n\nconst server = new ApolloServer({\n  schema: buildFederatedSchema([{ typeDefs, resolvers }]),\n  context: async ({ event, context }) =\u003e {\n    return {\n      headers: event.headers,\n      functionName: context.functionName,\n      event,\n      context,\n      user: await verify(event),\n    };\n  },\n  playground: {\n    endpoint: `/${process.env.ENV}/graphql`,\n  },\n  introspection: true,\n});\n```\n\n## Notes\n\nThe verify function is asynchronous so you can either await the function like it's been done above or `await context.user` whenever you want to access it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblankdev%2Flambda-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointblankdev%2Flambda-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblankdev%2Flambda-auth/lists"}