We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See this code:
passport.use(new GoogleStrategy(strategyOpts, function(accessToken, refreshToken, profile, done) { // Check that the hosted domain is correct let profileObj = profile || {} let profileArgs = profile._json || {} if(!profileArgs || !profileArgs.domain || profileArgs.domain != config.google.hostedDomain) { return done('An error', null) } return done(null, profile) }) )
When passing an error to the done callback (first argument), the page doesn't finish loading.
done
The text was updated successfully, but these errors were encountered:
I think this is not directly related to koa-passport. Anyway, you can fix your code by returning an actual error:
koa-passport
return done(new Error('An error'), null)
Sorry, something went wrong.
No branches or pull requests
See this code:
When passing an error to the
done
callback (first argument), the page doesn't finish loading.The text was updated successfully, but these errors were encountered: