react-redux-firebase-authentication icon indicating copy to clipboard operation
react-redux-firebase-authentication copied to clipboard

🔥Boilerplate Project for Authentication with Firebase in React and Redux

Results 5 react-redux-firebase-authentication issues
Sort by recently updated
recently updated
newest added

deleted app dir

[{"_id":"63296556a6ecce368d5d354a","body":"ok","issue_id":1660142012378,"origin_id":616026065,"user_origin_id":60562879,"create_time":1587270039,"update_time":1587270039,"id":1663657302917,"updated_at":"2022-09-20T07:01:42.917000Z","created_at":"2022-09-20T07:01:42.917000Z"}] comment

Registering new user Issue

[{"_id":"632964510d68a95f041c76d3","body":"this happens with google, and with facebook sign ins as well.\r\ni get signed in\/registered just fine, however the error message comes regardless what path is taken..\r\n\r\nthe moment my session crosses the threshold from logged out to logged in, that's the error.\r\nand it isn't writing to my database.\r\n\r\n![withgoogle](https:\/\/user-images.githubusercontent.com\/777603\/49373562-cb9a3b80-f6bb-11e8-9c9c-b60d185161f2.JPG)\r\n","issue_id":1660142012379,"origin_id":443693271,"user_origin_id":777603,"create_time":1543840044,"update_time":1543840044,"id":1663657041777,"updated_at":"2022-09-20T06:57:21.776000Z","created_at":"2022-09-20T06:57:21.776000Z"},{"_id":"632964510d68a95f041c76d4","body":"1) What does it say in your developer's console log? \r\n2) Did you activate all the necessary sign in methods on your Firebase project's dashboard?","issue_id":1660142012379,"origin_id":443695752,"user_origin_id":2479967,"create_time":1543840634,"update_time":1543840634,"id":1663657041780,"updated_at":"2022-09-20T06:57:21.780000Z","created_at":"2022-09-20T06:57:21.780000Z"},{"_id":"632964510d68a95f041c76d5","body":"yes. I can log in just fine with google and facebook, and link the\naccounts.. Because this is \"create react app\" there is no console\nlog. it just sits frozen at\n\n`\nCompiled successfully!\nYou can now view react-redux-firebase-authentication in the browser.\nLocal: http:\/\/localhost:3000\/\n... etc....\n`\n\nand\n\n`\nnpm run build\n\n> [email protected] build C:\\Code Repo\\react-redux-firebase-authentication-fork\n> react-scripts build\n\nCreating an optimized production build...\nCompiled successfully.\n\nFile sizes after gzip:\n\n 153.62 KB build\\static\\js\\1.737a0a41.chunk.js\n 5.52 KB build\\static\\js\\main.dc14d417.chunk.js\n 763 B build\\static\\js\\runtime~main.229c360f.js\n 259 B build\\static\\css\\main.27a2d3ee.chunk.css\n\nThe project was built assuming it is hosted at the server root.\nYou can control this with the homepage field in your package.json.\nFor example, add this to build it for GitHub Pages:\n\n \"homepage\" : \"http:\/\/myname.github.io\/myapp\",\n\nThe build folder is ready to be deployed.\nYou may serve it with a static server:\n\n npm install -g serve\n serve -s build\n`\n\ni get no errors in console, no log file created. everything works just\nperfectly, except that error shows up whenever i am authed.\n\nmaybe something to do with ..env file variables that you have that i don't?\n\ni just put in the variables that were needed, worked like a charm first time.\n\ni looked at every kind of logging my computer has going on, no errors\nanywhere in any of the logs in vscode, or console.\n\neverything works, except it doesn't write users to the database, and\nit returns a permission error to the browser. Also, if i log in with\nmy google account, which on firebase is the owner of the project,\nshouldn't that automatically make me an admin since all profiles are\nbeing saved to the profiles database and not the firebase database? (i\nknow, it sounds ridiculous to even have to put it that way...)... i\ndon't see why google saves authed users to a place where you have no\naccess to user profile data, and have to store it seperatly in\nfirebase.. having to pull users from one place and their profiles from\nanother is ridiculous.. they ought to add a way to CRUD the user\nlogin data the same way you can manage the firebase data.....\n\n.... anyway, whinging aside, i have no console logs or errors or\nanything.. clean as a whistle. i'm going to reboot... who knows, it's\nbeen on for 2 months, maybe i ought to see if it's something here..\none time i found i had a dev server spun up that i forgot about for 3\nmonths, when i couldn't open a port for a dev server and found there\nwas already a folder being served there that just was going on in the\nbackground....\n\ni'll muddle around,\n","issue_id":1660142012379,"origin_id":443703809,"user_origin_id":777603,"create_time":1543842434,"update_time":1543842434,"id":1663657041783,"updated_at":"2022-09-20T06:57:21.782000Z","created_at":"2022-09-20T06:57:21.782000Z"},{"_id":"632964510d68a95f041c76d6","body":"$ yarn import\r\nyarn import v1.12.3\r\ninfo found npm package-lock.json, converting to yarn.lock\r\nwarning react-scripts > eslint > file-entry-cache > flat-cache > [email protected]: CircularJSON is in maintenance only, flatted is its successor.\r\nwarning react-scripts > jest > jest-cli > prompts > [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https:\/\/github.com\/lukeed\/kleur\/releases\/tag\/v3.0.0\\> for migration path(s).\r\ninfo [email protected]: The platform \"win32\" is incompatible with this module.\r\ninfo \"[email protected]\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\nwarning \"firebase > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/storage > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/messaging > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/database > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/auth > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nwarning \"firebase > @firebase\/firestore > @firebase\/[email protected]\" has unmet peer dependency \"@firebase\/[email protected]\".\r\nsuccess Saved lockfile.\r\nDone in 18.86s.\r\n\r\n\r\nthis help???\r\n\r\n\r\nijmport with yarn and it says there's a shit-ton of dependencies ~not~ installed that firestore relies on....\r\ni'm assuming you have those dependencies installed but didn't '--save' them in your package file. and NPM assumes everything is cool because it's got a lockfile saying so.... i think that's what the issue might be. so i'm going to install all the dependencies properly and give it another go.... bcause after more testing, the e-mail verification doesn't work either. so then i can't access most of the app because it blocks me with a \"you need to verify your e-mail before i let you see anything\" type message..","issue_id":1660142012379,"origin_id":443737285,"user_origin_id":777603,"create_time":1543848837,"update_time":1543848837,"id":1663657041786,"updated_at":"2022-09-20T06:57:21.785000Z","created_at":"2022-09-20T06:57:21.785000Z"},{"_id":"632964510d68a95f041c76d7","body":"Nope. Problem Seems to be an inability to communicate with the database though. for some reason, project will not connect to the database correctly, although it does connect to all the auth side of things perfectly. \r\n![linked](https:\/\/user-images.githubusercontent.com\/777603\/49383379-d661ca00-f6d5-11e8-8d10-253a461cc9f8.JPG)\r\n","issue_id":1660142012379,"origin_id":443750521,"user_origin_id":777603,"create_time":1543850985,"update_time":1543851094,"id":1663657041789,"updated_at":"2022-09-20T06:57:21.788000Z","created_at":"2022-09-20T06:57:21.788000Z"},{"_id":"632964510d68a95f041c76d8","body":"just replaced twitter with github, can log n with github too. logged in and linked facebook, google, local, and github. All's good in the auth hood. going to copy a static build of the project to a server with a domain and tell google that domain is safe... could be a problem that it doesn't like connecting to the database from my local address because i'm not HTTPS serving? that could be next on your tutorials! adding https to dev, or throwing in an https proxy on top of a CRA 2 project. OOH.. or how to prevent users from logging in until their e-mail has been verified, to prevent fake users.","issue_id":1660142012379,"origin_id":443771635,"user_origin_id":777603,"create_time":1543854288,"update_time":1543854288,"id":1663657041791,"updated_at":"2022-09-20T06:57:21.790000Z","created_at":"2022-09-20T06:57:21.790000Z"},{"_id":"632964510d68a95f041c76d9","body":"okay.. after trying, nearly everything, even refactored over 50% of the code.... it still exhibits the same behaviours..\r\n\r\nthis is a pure install direct download of your repository 10 miutes ago,\r\n\r\n\r\nnpm install\r\nnpm run build\r\n\r\ncopied build folder to my server.\r\n\r\nhttp:\/\/kaistestsite.com\/\r\n\r\ngo check it out..\r\n\r\n\r\nthere is also another problem..\r\n\r\nyou can't enter the site from any other point than http:\/\/kaistestsite.com\/.. same problem on dev and production build. localhost, etc... \r\n\r\nif you try http:\/\/kaistestsite.com\/home you get 404. if you try anything other than a naked url \" \/ \" you get a 404. \r\n\r\nif i hit refresh on a page other than landing page.. 404... if i hit back in browser from 404, i get 404...\r\n\r\nif i hit forward in browser from a page i was at prior to loanding, i get landing.\r\n\r\n\r\nthere's no persistence of authuser in store.\r\n\r\nalso, i was working with the project and refactoring and moving and sorting it into folders.. and i wondered how the code could not work.. you're an expert... i'm only a few months into learning react.\r\n\r\nthen i dropped in my own linting ruleset.....\r\ni got so many broken things, i threw my hands up in the air and said \"Screw this, i am not fixing some 500+ errors\"... a ton of them had to do with authuser and firebase not being properly introduced asa props..\r\n\r\nthe whole project is an absolute nightmare for ESLINT. i literally spent the past 16 hours straight in my chair with so few breaks that i have swollen ankles from sitting so long going over and over the code.\r\n\r\ni don't know enough of your method to fix it..\r\ni did manage to split a ton of it apart and shed a couple hundred lines of repetitive cod, everything still worked exactly how the broken original does. same results.\r\n\r\n\r\nanyway.. i used enough of my time on this...\r\n\r\njust thought you shoul,d have all this info so that you can be aware that you need to start over from scratch and not put entire multicomponent files together and doubling or in some cases going 5 times over something that you could just do in one step to get from a => b. \r\n\r\nthose 150 character long super-mega-nested lines are ridiculous... \r\n\r\nyou're an authority on this stuff. i'm new at this. you gotta do better, because people like me look up to people like you... so.. do better.\r\n\r\n![screenshot 2018-12-03 16 27 10](https:\/\/user-images.githubusercontent.com\/777603\/49412147-a1329780-f728-11e8-84a6-f7d5f1e589ac.png)\r\n![screenshot 2018-12-03 16 27 48](https:\/\/user-images.githubusercontent.com\/777603\/49412148-a1329780-f728-11e8-88ee-f21e8e41e3d1.png)\r\n\r\nhere's a zip file with my babel, eslint, and editor config.\r\nsee if maybe you find all the erros i found.\r\n\r\n[react-redux-firebase-authentication.zip](https:\/\/github.com\/the-road-to-react-with-firebase\/react-redux-firebase-authentication\/files\/2641994\/react-redux-firebase-authentication.zip)\r\n\r\n\r\n","issue_id":1660142012379,"origin_id":443937578,"user_origin_id":777603,"create_time":1543887695,"update_time":1543887695,"id":1663657041794,"updated_at":"2022-09-20T06:57:21.793000Z","created_at":"2022-09-20T06:57:21.793000Z"},{"_id":"632964510d68a95f041c76da","body":"Guys, I've had this issue.\r\nRead the README.md\r\nThere are security rules at the very bottom of the file.\r\n\r\n1. Copy them\r\n2. Go to Firebase Console [here](https:\/\/console.firebase.google.com) and select your project.\r\n3. Drawer (Left) Menu -> Develop -> Database\r\n4. At this point you will either see 2 cards for 2 different (Cloud Firestore, Realtime Database) databases or it will automatically choose Cloud Firestore, but at the header of the section, near the title, you will see a chooser with Cloud Firestore Selected. Select Realtime Database.\r\n5. Go to the rules tab.\r\n6. Paste what you've copied in 1\r\n7. Save\r\n8. Go back to your local development server (ex. localhost:3000) and delete site data from DevTools Application Tab if you're using Chrome.\r\n9. Reload the site\r\n10. Sign Up\r\n\r\nAfter these steps the issue should disappear. \r\nThank me later :)\r\n\r\n\r\n","issue_id":1660142012379,"origin_id":508731983,"user_origin_id":24435727,"create_time":1562327010,"update_time":1562327010,"id":1663657041798,"updated_at":"2022-09-20T06:57:21.797000Z","created_at":"2022-09-20T06:57:21.797000Z"}] comment

When i register with a random username and password, it registers the user immediately, but i get an error.. i've begun refactoring the entire project, moving folders around, pulling pieces...

onAuthStateChanged

[{"_id":"6329658cd7e37411a8313681","body":"Hey. Thank you for reaching out. I would say it is semi optimal. It's not that you should wire every component to withAuthorization. My feeling is that it should happen on the top layer and thus you would listen two times on firebase changes for the auth user: withAuthentication & withAuthorization. Since the authUser shouldn't change often, only for sign up, sign in and sign out, I would say it is a minor performance problem. But I get your point here! \r\n\r\nWould you want to propose a different solution in a PR in https:\/\/github.com\/rwieruch\/react-firebase-authentication\/ (plain React Firebase) just to showcase how it could be done differently? Perhaps it would be a great opportunity for me to adjust the material :) Thanks again for reaching out.","issue_id":1660142012382,"origin_id":352593917,"user_origin_id":2479967,"create_time":1513640709,"update_time":1513640709,"id":1663657356194,"updated_at":"2022-09-20T07:02:36.194000Z","created_at":"2022-09-20T07:02:36.194000Z"}] comment

First of all, very good sample, But why do you register to onAuthStateChanged on every component that needs permission(withAuthorization), Shouldn't that be handled differently since you already listen to it...

wontfix

$ npm start > [email protected] start > react-scripts start node:internal/modules/cjs/loader:371 throw err; ^ Error: Cannot find module 'C:\Data\projects\react-redux-firebase-authentication\node_modules\lodash\lodash.js'. Please verify that the package.json has a valid "main" entry at tryPackage...