Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hansputera/gampang-mongodb-auth-adapter
Gampang Auth Adapter MongoDB Version
https://github.com/hansputera/gampang-mongodb-auth-adapter
gampang mongodb whatsapp-bot whatsapp-bot-md
Last synced: about 1 month ago
JSON representation
Gampang Auth Adapter MongoDB Version
- Host: GitHub
- URL: https://github.com/hansputera/gampang-mongodb-auth-adapter
- Owner: hansputera
- License: mit
- Created: 2022-11-13T06:35:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T14:46:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T15:07:01.958Z (about 1 month ago)
- Topics: gampang, mongodb, whatsapp-bot, whatsapp-bot-md
- Language: TypeScript
- Homepage: https://npmjs.com/package/@gampang-pkg/mongodb-adapter
- Size: 895 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gampang MongoDB Adapter
Simple gampang auth adapter in MongoDB version.
## Usage
It's very simple:
```ts
import {useMongoDBAdapter} from '@gampang-pkg/mongodb-adapter';// session is SessionManager, you can use 'client.session' also
await session.registerAdapter(useMongoDBAdapter, {
uri: 'your mongodb connection uri',
dbName: 'gampang-sessions',
});
```If you want use your mongodb client, just add the `db` in the options ^\_
## License
MIT