Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Javis V. Pérez
    Hello! i have a question regarding JWT, im using this package to handle my JWT tokens but im creating a new token on every request and blacklisting the previous, is that part of the JWT flow or im just doing some foolness?
    @javisperez If you have a requirement to issue a new token on every request, then it's fine. However, typically you should just rely on the expiration claim. https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-25#section-4.1.4
    Javis V. Pérez
    Oh great man, thank you @Benjman i dont know if i was doing the spected behavior or if i was just doing wrong things (apparently i was) thank you, ill rely on exp as you say, thank you.
    i just read this post http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/ and would like some thoughts on it
    hi guys! I am building an iOS app with Laravel 5.3 as a backend using JWT auth. I can log into the app, and recieve the token, but I don't know am I supposed to store the JWT on the iOS client or will Laravel store the token in a session? How does the token persist?
    ok, I got the token persisting. I'm not sure how I can use it lol. Do I need to pass it with the url on each request?
    @Mapamatician Yes, you would typically add it to the header for each request.
    I got it eventually thanks
    what I'm struggling with now is logout. How can I invalidate a token?
    Meheret Egzerab
    Could someone please help me with autentication I am getting this error : UnauthorizedError: jwt expired.
    Swornim Shrestha
    How can I increase the time to expire the token?
    karunaker reddy
    I have separate Authentication app built with Jhipster and I want to share JWT token among multiple subdomains (multiple UI apps hosted under x.xyz.com, y.xyz.com, z.xyz.com). How can I share JWT token from authentication app to other apps
    René Goretzka
    hello.. when i safe a jwt for a user being logged in.. how do i get the user props from that user when he is already logged in and want to access some stuff? i want to get the userid or something like that?
    Is https://github.com/ojensen5115/jwtcrack still a vulnerability?
    Nice to join this room
    Does someone have a simple example login script in PHP that uses JWT ?
    Alexander Gaal


    I've got a question. I am using Angular in frontend and Laravel in backend, both are using jwt for tokens and our server uses http2. If I call my application several requests are started at the same time, when I refresh the token on the first request, the following requests are causing errors, because token is already invalid. Any solutions, except turning black list off?

    Hi, does anyone knows how i can generate v-model names in a v-for loops ?
    "<div class="form-group" v-for="drank in dranken">
    <input type="number" class="form-control" placeholder="Hoeveelheid" v-model="stocktelling.naam">
    the v-model should be generated to be different for every input
    oops wrong room
    Does anyone have a axios implementation example code which request jwt refresh ( if necessary ) before ajax call? Will be really helpful!
    Neeraj Dhiman
    Can someone help me on verifying keycloak access_token (which is JWT) ?
    Lihai Ben-Haim
    I have a question about the security of a system authentication by JWT
    what if someone could somehow crack a single jwt token of a user (using MITM for example)
    from now on, basically even if the user changes his password, the cracked JWT is already obtained
    lets say the secret private key is kept in the server and never replaced
    that means that once someone get the JWT token he will get access to the user's resources forever
    in session system, we are using a randomly generated id, so even if someone gets the sessionid, the system can somehow recover from it, deleting the sessions, generating new ones etc..
    Tasos Soukoulis
    Is it possible to roll my own jwt authentication on top of oauth2 ? Ex. Create user account using google/facebook oauth2 and then keep authentication using the jwt created by my server?
    Or it's wasteful?
    Ranie Santos

    Is it okay or is it a bad idea to add 'remember me' functionality when using JWT instead of sessions?

    I have a project using JWT and I've gotten it to work so far (expires every hour, can be refreshed up to 2 weeks). But right now I have a useless remember me checkbox on my login page.

    I'm trying to decide whether I should remove it or make it functional.

    I've been looking through the code and it seems refresh_ttl isn't found in any of the token's claims.

    The exp claim only refers to the regular ttl.

    So I can't use the getJWTCustomClaims method in the User model specified in the docs of the package.

    this place is a ghost town
    Hey guys
    jwt.verify(token, config.secret, function(err, decoded){})
    Here decoded is returning me id, iat and exp. So, what is iat?
    Ranie Santos
    iat means Issued At
    Javier Aviles

    Hi! I wanted to leave here a good boilerplate with Koa2 Typescript, jwt-auth, logging orm sql docker.... Very good Readme, hope it helps somebody!


    Nastaran Heydari
    Hi! How can I add Authoization : Bearer <token> to my request header in my code (not in postman)?
    Boris Pavlov
    I have a question about the refresh token
    Boris Pavlov
    I want to use JWT in order to reduce database requests. Unfortunately that way I am not able to temporary "disable" users. Even more if my jwt access token TTL is 5 min after 6 min mark I will have to re-authenticate.
    What is the best way to solve this issue?
    Dilip Kumar
    Adeshina Hammed H.
    @noonhe , you can achieve that by using the header in the curl (if you’re using CURL.
    Naguib Ihab (A.K.A. Nick)
    anyone here?