@gampang-pkg/mongodb-adapter
TypeScript icon, indicating that this package has built-in type declarations

1.0.25 • Public • Published

Gampang MongoDB Adapter

Simple gampang auth adapter in MongoDB version.

Usage

It's very simple:

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

/@gampang-pkg/mongodb-adapter/

    Package Sidebar

    Install

    npm i @gampang-pkg/mongodb-adapter

    Weekly Downloads

    12

    Version

    1.0.25

    License

    MIT

    Unpacked Size

    8.19 kB

    Total Files

    5

    Last publish

    Collaborators

    • hanifdwypoetras