Skip to content

Instantly share code, notes, and snippets.

@acomito
Last active August 11, 2019 12:32
Show Gist options
  • Save acomito/596388b52416a51d71e46cd5c68f31e6 to your computer and use it in GitHub Desktop.
Save acomito/596388b52416a51d71e46cd5c68f31e6 to your computer and use it in GitHub Desktop.
import AccountsPassword from '@accounts/password';
import MongoDBInterface from '@accounts/mongo';
import AccountsServer from '@accounts/server';
import { AccountsModule } from '@accounts/graphql-api';
import { db } from './src/modules/mongodb.js';
const password = new AccountsPassword();
const accountsServer = new AccountsServer(
{
db: new MongoDBInterface(db),
tokenSecret: 'SECRET'
},
{
password
}
);
export const accountsGraphQL = AccountsModule.forRoot({ accountsServer });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment