Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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