https://github.com/grandlinex/bundle-simple-auth
Simple auth for Grandline Kernel
https://github.com/grandlinex/bundle-simple-auth
authorization backend bundle express framework grandlinex npm-package typescript
Last synced: 11 months ago
JSON representation
Simple auth for Grandline Kernel
- Host: GitHub
- URL: https://github.com/grandlinex/bundle-simple-auth
- Owner: GrandlineX
- License: bsd-3-clause
- Created: 2021-12-04T22:33:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T12:05:26.000Z (almost 4 years ago)
- Last Synced: 2025-04-25T21:07:18.531Z (11 months ago)
- Topics: authorization, backend, bundle, express, framework, grandlinex, npm-package, typescript
- Language: TypeScript
- Homepage: https://www.grandlinex.com/
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GrandLineX simple auth bundle
> Simple user management and auth for the `GrandLineX Kernel`
## Requirements
- GrandLineX Kernel Project with postgreSQL configuration
## Features
- Simple user & user roll management
- Default Admin user
- Authorize user with JWT
- Supported JWT options
- Cookie
- Path
- Header
## Install
1. Install package
```bash
npm i @grandlinex/bundle-simple-auth
```
2. Load module
```typescript
import Kernel,{PGCon,SQLCon} from '@grandlinex/kernel';
import SimpleAuth from '@grandlinex/bundle-simple-auth';
export default class ExampleKernel extends Kernel {
constructor( ) {
super({
appName: 'App',
appCode: 'app'
});
// Variant with InMemDb [non persistent - only for dev]
this.addModule(new SimpleAuth(ik));
// Variant with Postgessql
this.addModule(new SimpleAuth(ik,(module)=>new PGCon(module,"0")));
// Variant with SQLight
this.addModule(new SimpleAuth(ik,(module)=>new SQLCon(module,"0")));
}
}
```
## Description

GrandLineX is an out-of-the-box server framework.
[](https://github.com/GrandlineX/bundle-simple-auth)
[](https://www.npmjs.com/package/@grandlinex/bundle-simple-auth)

### Status





### Issues



## Documentation
- [Documentation](https://grandlinex.github.io/bundle-simple-auth/)
- [GrandLineX Docs](https://grandlinex.github.io/docs/)
- [GrandLineX Project](https://grandlinex.github.io/)