ooade / next-apollo-auth Goto Github PK
View Code? Open in Web Editor NEWAuthentication Boilerplate with Next.js and Apollo GraphQL
Home Page: https://next-auth-apollo.now.sh
Authentication Boilerplate with Next.js and Apollo GraphQL
Home Page: https://next-auth-apollo.now.sh
Have you considered the new Apollo Server?
Could we get an example of logging the user out?
I recently noticed this behaviour and will send a fix to this now.
GraphQL Server Listening on Port 3000
/Users/pkandarpa/packages/next-apollo-auth/server/routes.js:9
passport.authenticate('github', (err, user, { nextRoute }) => {
^
TypeError: Cannot destructure property `nextRoute` of 'undefined' or 'null'.
at passport.authenticate (/Users/pkandarpa/packages/next-apollo-auth/server/routes.js:9:35)
at Strategy.strategy.error (/Users/pkandarpa/packages/next-apollo-auth/node_modules/passport/lib/middleware/authentic
ate.js:353:18)
at /Users/pkandarpa/packages/next-apollo-auth/node_modules/passport-oauth2/lib/strategy.js:166:34
at /Users/pkandarpa/packages/next-apollo-auth/node_modules/passport-github/lib/strategy.js:77:16
at /Users/pkandarpa/packages/next-apollo-auth/node_modules/oauth/lib/oauth2.js:209:7
at passBackControl (/Users/pkandarpa/packages/next-apollo-auth/node_modules/oauth/lib/oauth2.js:134:9)
at IncomingMessage.<anonymous> (/Users/pkandarpa/packages/next-apollo-auth/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (events.js:132:15)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:152:19)
Why are we not using TypeScript in the project? It is the superset of JS so we'll have more features are better code structure.
If I change route with Link or just change code in dev mode, so there is some refresh only in browser, Ihave empty user from withData and it looks like I'm logged out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.