{"id":18467933,"url":"https://github.com/grandlinex/bundle-simple-auth","last_synced_at":"2026-05-01T16:35:12.399Z","repository":{"id":57114139,"uuid":"435023184","full_name":"GrandlineX/bundle-simple-auth","owner":"GrandlineX","description":"Simple auth for Grandline Kernel","archived":false,"fork":false,"pushed_at":"2022-04-24T12:05:26.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T21:07:18.531Z","etag":null,"topics":["authorization","backend","bundle","express","framework","grandlinex","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.grandlinex.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrandlineX.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":"2021-12-04T22:33:17.000Z","updated_at":"2023-10-11T14:53:14.000Z","dependencies_parsed_at":"2022-08-22T02:40:38.360Z","dependency_job_id":null,"html_url":"https://github.com/GrandlineX/bundle-simple-auth","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandlineX%2Fbundle-simple-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandlineX%2Fbundle-simple-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandlineX%2Fbundle-simple-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandlineX%2Fbundle-simple-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrandlineX","download_url":"https://codeload.github.com/GrandlineX/bundle-simple-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252705099,"owners_count":21791203,"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":["authorization","backend","bundle","express","framework","grandlinex","npm-package","typescript"],"created_at":"2024-11-06T10:04:03.448Z","updated_at":"2026-05-01T16:35:12.358Z","avatar_url":"https://github.com/GrandlineX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrandLineX simple auth bundle\n\n\u003e Simple user management and auth for the `GrandLineX Kernel`\n\n\n\n\n## Requirements\n- GrandLineX Kernel Project with postgreSQL configuration\n\n## Features\n\n- Simple user \u0026 user roll management\n  - Default Admin user \n- Authorize user with JWT\n  - Supported JWT options\n    - Cookie\n    - Path\n    - Header\n  \n\n## Install\n\n1. Install package \n```bash\n   npm i @grandlinex/bundle-simple-auth\n```\n2. Load module \n```typescript\nimport Kernel,{PGCon,SQLCon} from '@grandlinex/kernel';\nimport SimpleAuth from '@grandlinex/bundle-simple-auth';\n\n\nexport default class ExampleKernel extends Kernel {\n  constructor( ) {\n    super({\n      appName: 'App',\n      appCode: 'app'\n    });\n    // Variant with InMemDb [non persistent - only for dev]\n    this.addModule(new SimpleAuth(ik));\n    // Variant with Postgessql\n    this.addModule(new SimpleAuth(ik,(module)=\u003enew PGCon(module,\"0\")));\n    // Variant with SQLight\n    this.addModule(new SimpleAuth(ik,(module)=\u003enew SQLCon(module,\"0\")));\n  }\n}\n```\n## Description\n\n\u003cimg alt=\"img\" height=\"24\" src=\"https://img.shields.io/static/v1?label=\u0026amp;message=KERNEL\u0026amp;color=black\u0026amp;logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA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vM5yxxxq7HUwaqrdAVrOzzFeXN72yu7Uta84MuN3qZdCPXfsGJK+IRPjp1be4zsU1TPwuVL/YJ0+7W9AOuP5yC+/yK1Ga32zUontwi3DDwPJ810Z52Y7zX5Rl9Vf/eiDAzU2tgtFIbEqqrv/hUz3LLzrfkh361qy0ln7C60kOOrOV715kOnfB1JWFYwoT2F13UFsS8pvyo6NaWPIVAojDZFZQZqoJ0qpx2kKQ1OqKzouu0cmeaPoVWfMPEb3soas/nDernomKXTW9DGJvGmJg8zZ39P6gB0B6qOviy0uwiBHCLkgeMl6hB/Daf2jEDQuD4taO5+qri25zng9p1W1UuABTBsaR+INPne33D3pCIjQQAt13CnSEfxmyOtpv3hFQqrh0/YDTS26YoKoleOJrji8VurUQlCfBK9HRKdomnj/NSyfA+0PyhJFFJovCKkrX87Tfgru4kPFmeHTNUZwi/lKGvt0GzOXmkNdk0mdbbQrL0dWNhOQk9vyV3WYwaAgx3Z9ia1kdemNJuHm5CQk7I9avCo+0c92UIAPfRuoesmWVqAGgsof/YTLaZJAD09V/mDjBu30oCADoZ7ey4KAIg60q4OV57NpGF6vzRgfLnJh4Au1rfNduQwUVvht67662VAZj0ZKkAKJI3Ro0zrCqEz3238P778wDmU6aaNbuVANikxH0jTqqJ1CoJILHypU0oDc9TAAAbHj5rk+qyVfLVeezw1346JjWcmF6MvI8dPdLpmVP9zrPFVuei1NldVV9gTIhgCKGQxjuqfhS0ZjWAcdnqDIDTJz0ZqRLttzoHXQDhNQAm7IsABE5pAUAA8D8D/AUp6ovNs1/7jgAAAABJRU5ErkJggg==\" /\u003e\n\n\nGrandLineX is an out-of-the-box server framework.\n\n\n[![GitHub](https://badge.fury.io/gh/grandlinex%2Fbundle-simple-auth.svg)](https://github.com/GrandlineX/bundle-simple-auth)\n[![NPM](https://img.shields.io/static/v1?label=NPM\u0026message=Package\u0026color=red\u0026logo=NPM)](https://www.npmjs.com/package/@grandlinex/bundle-simple-auth)\n![TS](https://img.shields.io/static/v1?label=Language\u0026message=TypeScript\u0026color=blue\u0026logo=TypeScript)\n\n\n### Status\n![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=alert_status)\n![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=security_rating)\n![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=sqale_rating)\n![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=reliability_rating)\n![Coverage](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=coverage)\n\n### Issues\n![Bugs](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=bugs)\n![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=vulnerabilities)\n![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=GrandlineX_bundle-simple-auth\u0026metric=code_smells)\n\n\n## Documentation\n- [Documentation](https://grandlinex.github.io/bundle-simple-auth/)\n- [GrandLineX Docs](https://grandlinex.github.io/docs/)\n- [GrandLineX Project](https://grandlinex.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandlinex%2Fbundle-simple-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrandlinex%2Fbundle-simple-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandlinex%2Fbundle-simple-auth/lists"}