Comments (6)
Ah, it was that simple, Thanks @benjie for the help.
from starter.
Why two separate express instances?
from starter.
Thing is I am using /graphql
for web endpoint which use middleware and authentication with session, while mobile application is being authenticated with JWT Token
only. What should be possibilities other than this?
from starter.
There's no particular reason you can't support JWT and sessions on the same endpoint - what issue are you facing when you try and do this?
from starter.
Issue is that when I am attaching JWT middleware, I am getting unauthorized, if I don't add JWT headers, while in API case session cookies won't be there. So I am bit confused as how to merge these two.
from starter.
You're probably looking for the credentialsRequired: false
option to the JWT middleware. https://github.com/auth0/express-jwt#error-handling
from starter.
Related Issues (20)
- Dependency requires Node 14 but Dockerfile defaults to Node 12 HOT 1
- Not able to send verification emails in development HOT 9
- Heroku Demo App Reset Password flow is broken HOT 2
- Switch from @app to @localrepo
- Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output HOT 2
- Error when using patch in mutation.
- Error when using patch in mutation. HOT 3
- Filter error in testing query HOT 2
- Module not found in docker- docker run [image] test HOT 1
- Error when trying to add postgraphile-plugin-connection-filter to graphile-starter 4.0 HOT 3
- scripts/start.js yarn silent flag not accepted by Yarn berry v3 HOT 1
- Failure to Invalidate session after password change HOT 1
- can't launch database with docker-compose v2 HOT 1
- username sanitization is case sensitive; column is citext
- How can we manage session in the postgraphile app? HOT 1
- TFA & RBAC HOT 1
- currently no loaders are configured to process this file HOT 2
- Login/registration vulnerable to malicious redirect to third-party sites HOT 3
- Two of the e2e subscription tests fail if they are running against the dev environment.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter.