Øyvind Saltvik
Øyvind Saltvik
You can try disabling minimization but that will only give you the line in server.js
But probably a 3rd party app that uses recharts.
You need to create a express route that checks if the token is expired. I would make two react providers that checks for expired token, one for server-side and one...
https://hasura.io/blog/best-practices-of-using-jwt-with-graphql/
Would be cool to make a full featured example with keycloak and hasura.
I may add it here later https://github.com/fivethreeo/razzle-with-docker-nginx
I have set up a deployment with keycloak now. https://github.com/fivethreeo/razzle-with-docker-nginx But not quite sure how to do jwt with it.
If you can make your spa work in this example I can do the changes to it to make it ssr capable. You may want to modify nginx/default_dev.conf.template and remove...
This is a good start: https://github.com/jkasun/stack-abuse-express-jwt/blob/master/auth.js Just make the refresh token a http-only cookie.
Not done yet but I have a work in progress app here: https://github.com/fivethreeo/razzle-prisma-graphqlcodegen-urql-formik-jwt