{"id":18539079,"url":"https://github.com/simov/grant-session","last_synced_at":"2025-07-13T19:07:35.035Z","repository":{"id":57253101,"uuid":"274143595","full_name":"simov/grant-session","owner":"simov","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-04T12:19:14.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T02:13:49.972Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-22T13:24:10.000Z","updated_at":"2021-04-03T10:18:13.000Z","dependencies_parsed_at":"2022-08-31T22:11:21.168Z","dependency_job_id":null,"html_url":"https://github.com/simov/grant-session","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/simov/grant-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fgrant-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fgrant-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fgrant-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fgrant-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/grant-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fgrant-session/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265191122,"owners_count":23725264,"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-06T19:46:09.063Z","updated_at":"2025-07-13T19:07:35.010Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# grant-session\n\n\u003e _Session handler for Grant_\n\n```js\n{\n  handler: 'aws', // required\n  name: 'grant',\n  secret: '...', // required\n  cookie: {path: '/', httpOnly: true, secure: false, maxAge: null},\n  embed: false,\n  store: {\n    get: async (key) =\u003e {},\n    set: async (key, value) =\u003e {},\n    remove: async (key) =\u003e {},\n  }\n}\n```\n\n- `handler` - Grant handler name, either `node`, `aws` or `vercel` **required**\n- `name` - the name of the session cookie, defaults to `grant`\n- `secret` - used to sign the cookie **required**\n- `cookie` - [cookie] options, defaults to `{path: '/', httpOnly: true, secure: false, maxAge: null}`\n- `embed` - embed the session data into the cookie, possible value: `true`\n- `store` - external session store implementation, `embed` have to be falsy and the store methods have to be implemented\n\nEither `embed` have to be `true` or the `store` have to be implemented!\n\n\n  [cookie]: https://www.npmjs.com/package/cookie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fgrant-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fgrant-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fgrant-session/lists"}