-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context broken with accounts-boost? #627
Comments
Could you change that line like below?
|
Will try that. Thanks. If this is the fix the documentation needs updating in places. |
Does the issue persist? |
I still need to try. I moved off of accounts boost and got things working
the regular way. Will try the boost option with that fix later today.
…On Wed, 3 Apr 2019 at 3:06 Arda TANRIKULU ***@***.***> wrote:
Does the issue persist?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#627 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8oXwroimj_C4U1KETUvKqqHRX2tck7ks5vc_CggaJpZM4cUT2d>
.
|
Passing the full
Using // index.js
const accountsBoost = require(`@accounts/boost`).default;
const { ApolloServer } = require('apollo-server');
async function start() {
const boost = await accountsBoost({
tokenSecret: 'your secret',
});
const accounts = boost.graphql();
const {
typeDefs,
resolvers,
schemaDirectives,
context,
} = accounts;
const server = new ApolloServer({
typeDefs,
resolvers,
schemaDirectives,
context: session => context(session),
});
server.listen().then(({ url }) => {
console.log(`🚀 Server ready at ${url}`)
});
}
start(); |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use
@accounts/boost
, but keep getting an error creating the context:Error:
Any ideas?
The text was updated successfully, but these errors were encountered: