Git Product home page Git Product logo

Comments (2)

Can-Sahin avatar Can-Sahin commented on May 2, 2024 1

So I guess the problem here is saving the auth tokens or any credentials right? Normally the client libs you are using handles that. Are you doing the auth flow manually without any 3rd party lib? Even then redux-persist isn't the solution in my opinion. You have to create a way to store them in local storage (of course securely) which that auth libs are doing very nicely. I suggest you don't reinvent the wheel here and use a lib.

Auth is a very big subject and there are dozens of ways and libs to do that. I have used AWS Cognito in many projects and it works super smooth and very easy. You don't deal with tokens etc...

Boilerplate cannot be customized for such cases. Its very user-specific. You can try redux-persist for sure but I'm sure there would be an easier way than that for saving tokens. I'm soon gonna create another repo for examples and tutorials build on this boilerplate like Auth with Cognito, Animations with this and that so on....So that, common web app scenarios will be available to check.

from react-boilerplate-cra-template.

manemao avatar manemao commented on May 2, 2024

hey.
I tried to add redux-persist in dozen ways to this framework and none of them works. besides of what other choices may developers have in different cases I think it's up to them to choose what lib to use.
here is 3 issues about persisting redux state here and cause of popularity of this between react developers that use redux, I suppose that adding some examples and tutorial would be be very useful. hence with cases that I tried I guess somethings really wrong with persisting redux in this framework. If I'm wrong please add an working example and prove it or accept the fact.
It's not a to-do request. just proposal for pro work on this amazing framework.
tnx for this useful framework anyway.

from react-boilerplate-cra-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.