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: 3 months 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T14:46:22.000Z (over 2 years ago)
- Last Synced: 2025-04-13T02:38:43.941Z (3 months 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