jferrettiboke / react-auth-app-example Goto Github PK
View Code? Open in Web Editor NEWAn app example with authentication using Create React App, React, React Router, Apollo, GraphQL, Redux and Redux Form.
License: MIT License
An app example with authentication using Create React App, React, React Router, Apollo, GraphQL, Redux and Redux Form.
License: MIT License
Add tests with Jest for testing the entire app.
Hello,
After again signup no new records showing after redirect to dashboard page. When user refresh the page then showing new records. I have added new changes in your CRUD. Right now able to do delete, update, Add new user etc.
But no updated record seen, without page refresh. Because maintaining browserhistory.
Kindly resolve this issue.
Not an issue, just wanted to say thank you! Your project helped me immensely!
in node 8.1.2
$ npm start
(node:20397) DeprecationWarning: open()
is deprecated in mongoose >= 4.11.0, use openUri()
instead, or set the useMongoClient
option if using connect()
or createConnection()
. See http://mongoosejs.com/docs/connections.html#use-mongo-client
events.js:182
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::4000
at Object.exports._errnoException (util.js:1016:11)
at exports._exceptionWithHostPort (util.js:1039:20)
at Server.setupListenHandle [as _listen2] (net.js:1307:14)
at listenInCluster (net.js:1355:12)
at Server.listen (net.js:1455:7)
at Function.listen (/Users/cherdave/projects/ractgraphredux-app-example/server/node_modules/express/lib/application.js:618:24)
at Object. (/Users/cherdave/projects/ractgraphredux-app-example/server/src/server.js:32:5)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
I read that Web Storage (localStorage/sessionStorage) does not prevent against XSS attacks, and cookies are the preferred way of verifying a user. What are your thoughts on this? https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage
Also, I was trying to figure out how to make the user's id available with this in graphql? Do I need to pass the jwt token manually in every graphql request that requires authentication? That sounds like a bit of a pain...
EDIT
I figured out the second part to my question (it's automatically handled by apollo in networkInterface.use()
from client/index.js)
Hello,
Firstly thanks for creating this application with Graphql+Redux.
How to add delete records and edit records links with functionality? Means user can delete/edit records.
I look for the code when isAuthenticated (connectors.js) is called but i've not found.
If I run on graphiql the query to list user and don't send a token:
query {
users {
id
email
lastName
firstName
}
have no errors, so authentication is not working, am I right?
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.