json-web-token Questions

8

Solved

I have a nodejs api with an angular frontend. The API is successfully using JWT with passport to secure it's endpoints. I am now conscious that after the tokens have expired, my front end will st...
Demoralize asked 4/5, 2017 at 16:18

2

Solved

I am generating JWT token from WSOAM which is then passed as a header to API. I have my API created in nodejs and I am using jsonwebtoken plugin to verify and decode the JWT. I am unable to find R...
Abiogenetic asked 31/8, 2015 at 7:5

9

I'm using jsonwebtoken to decode a token, and I'm trying to get the expiration date. Typescript is throwing errors regarding the exp property, and I'm not quite sure how to solve them: import jwt ...
Pend asked 27/11, 2017 at 10:12

2

Solved

I don't understand why JWS unprotected headers exist. For some context: a JWS unprotected header contains parameters that are not integrity protected and can only be used per-signature with JSON Se...
Hunkers asked 27/10, 2016 at 17:47

3

Solved

According to documentation, https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback, jwt.verify will returns decode payload, I run the simple script: var token...
Gladdie asked 9/8, 2016 at 7:0

3

With a database session token system I could have a user login with a username/password, the server could generate a token (a uuid for example) and store it in the database and return that token to...
Bib asked 6/10, 2014 at 12:43

4

Solved

I need to get a token by signing a user ID with JWT: var token = jwt.sign(accounts[request.headers.login].id, privateKey, {expiresIn: 60}); Where id and privateKey are strings. The error is Err...
Cotenant asked 1/2, 2016 at 13:6

2

Solved

Using: passport-google-oauth2. I want to use JWT with Google login - for that I need to disable session and somehow pass the user model back to client. All the examples are using google callback t...

3

Solved

I am using JWT for authentication. However I do not want the user to be logged in from multiple devices. How do I ensure this? Right now - All I can think of is to store the JWT into DB and then c...
Turbit asked 3/2, 2017 at 16:37

2

Solved

I have an Node application running with express and jsonwebtoken. I have made a check before every request for the api calls to check the jsonwebtoken. I have manually excluded the routes like belo...
Vincenz asked 6/12, 2017 at 9:33

6

Solved

If we try to parse an expired JWT, results in expired exception. Is there a way to read claims even the JWT was expired. Below is used to parse JWT in java: Jwts.parser().setSigningKey(secret.ge...
Abagael asked 4/3, 2016 at 8:40

4

I completed a Node app tutorial and went back to rewrite the code with async/await to better learn how it's done. However I have a route handler the I can't get right without using promises: getPr...
Broads asked 8/9, 2017 at 3:37

4

Solved

I am displaying some data on my website which returns from node server. It's works perfectly until today. Now I am getting below error on my server console when I go to my web page. I use Auth0 for...
Venola asked 5/10, 2016 at 13:2

3

Solved

Is it ok to store user credentials (username / password) in the JWT (so sign it and verify the resulted token later)? I heard that No, it is not secure to send a password in a JWT. This is beca...
Sadowski asked 7/3, 2017 at 15:54

3

Solved

As you know, there are some good reasons for using token based authentication instead of session based. In session based, of course there is a expiration time. So if user is not active for a while...
Ablebodied asked 24/12, 2016 at 16:41

3

We are building a React Native app for iOS and we are using an internal API built on node + express + jsonwebtoken. When the user logs in with username/password, the server validates those credent...
Hallowmas asked 19/1, 2016 at 6:56

4

Solved

I am a bit stumped by this one. I am trying to set up a valid JWT. I am using node.js with the jsonwebtoken middleware. I have followed the documentation located on the repo (located here), but I k...
Threat asked 24/10, 2015 at 19:28

2

Solved

Following the instructions in this Auth0 article, I successfully authenticated MQTT clients using "JWT" as username and the JWT token as a password. In my use case, however, JWT tokens are short-l...
Paregoric asked 15/11, 2017 at 18:1

1

I set to my project json web token authentication. I secured all requests under "private" path. What is the best way to download an image from client using tag img and attribute src. <img src="...
Worst asked 28/1, 2015 at 13:16

2

Solved

I am trying to make a Json web token authentication system with Go however I cant seem to get the parsing of the web token working. The error occurs in the following function. func RequireTokenAut...
Bouffe asked 12/9, 2016 at 23:50

2

Solved

I have wired up the JwtAuthForWebAPI nuget project but I am not able to validate the generated tokens. I end up getting a 500 error. I am using the exact same key value for both token generation an...
Permutation asked 20/4, 2015 at 17:37

2

Solved

One example suggested using 'jsonwebtoken' and another suggested 'jwt-simple'... what are the differences?
Sensual asked 3/10, 2016 at 3:58

1

Solved

I am using Node Express to build my backend server. Additionally, authentication is my application happens with Passport-SAML. I am using JWT to maintain user sessions. So the flow is, The user...
Actaeon asked 25/8, 2017 at 13:26

2

Solved

I'm trying to convert an armored ECC gpg key to corresponding java class ECPrivateKey/ECPublicKey. To generate the key pair I'm using: gpg --expert --full-generate-key Then selecting (9) ECC an...
Phung asked 19/6, 2017 at 15:48

1

Solved

I am using jsonwebtoken in NodeJs API application for authenticating user in my API application. The flow that I have setup is as follows: 1) The user registers through signup API and the access t...
Putrescible asked 16/6, 2016 at 12:53

© 2022 - 2024 — McMap. All rights reserved.