GithubHelp home page GithubHelp logo

Comments (10)

s-vamshi avatar s-vamshi commented on June 6, 2024

@roopeshsn i would like to work on this issue. Can you assign this to me?
My approach is in the backend we need to only send token after login or sign in

from freshcomm.

roopeshsn avatar roopeshsn commented on June 6, 2024

So It won't save the credentials in local storage, right?

from freshcomm.

s-vamshi avatar s-vamshi commented on June 6, 2024

Yes it won't get stored except jwt.

from freshcomm.

roopeshsn avatar roopeshsn commented on June 6, 2024

Can't we store jwt in a cookie?

from freshcomm.

s-vamshi avatar s-vamshi commented on June 6, 2024

local storage does the same thing as cookie right?
Just curious, is there any specific reason for storing jwt in cookie?

from freshcomm.

roopeshsn avatar roopeshsn commented on June 6, 2024

local storage does the same thing as cookie right? Just curious, is there any specific reason for storing jwt in cookie?

https://coolgk.medium.com/localstorage-vs-cookie-for-jwt-access-token-war-in-short-943fb23239ca

from freshcomm.

ozair-dev avatar ozair-dev commented on June 6, 2024

@s-vamshi localStorage can be accessed by the browser but the cookies are 'set and read' only by the backend and client doesn't have any control over it.

from freshcomm.

ozair-dev avatar ozair-dev commented on June 6, 2024

@roopeshsn u can assign it to me if @s-vamshi is not available.

from freshcomm.

s-vamshi avatar s-vamshi commented on June 6, 2024

@roopeshsn I caught up with some other work so you can assign it to @ozair-dev.

from freshcomm.

roopeshsn avatar roopeshsn commented on June 6, 2024

You can work on this issue @ozair-dev!

from freshcomm.

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.