question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: JWT has expired

See original GitHub issue

Was part of a hackathon a few months ago and we used the uport box to bootstrap the project. It was working then but not now. Trying to get this to work but continue receiving this error: Error: JWT has expired.

Code we had working 2 months ago was: export let uport = new Connect('TruffleBox');.

Project is at - https://github.com/micksabox/ethwaterloo2017

Any idea why this may be happening and how I can fix?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
wrannamancommented, Dec 24, 2017

I solved this by creating an app in uPort

  1. create an app in uport
  2. copy the code at the bottom under ‘Click Here for your App Code’
  3. Change
import { Connect } from 'uport-connect
export let uport = new Connect('TruffleBox')
export const web3 = uport.getWeb3()

to

import { Connect, SimpleSigner } from 'uport-connect'

export const uport = new Connect('Test Ap 1', {
  clientId: 'xxx',
  network: 'rinkeby',
  signer: SimpleSigner('xxx')
})
export const web3 = uport.getWeb3()
2reactions
Ejdems666commented, Mar 17, 2018

I just updated the uport-connect package to current version 0.7.1 and it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you resolve 'jwt expired' error
It looks like you may be passing an expired JWT and you need to mint a new one from P14C.
Read more >
How to deal with JWT expiration? - gists · GitHub
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data. Quoted from...
Read more >
jwt.verify not throwing error for expired tokens - Stack Overflow
I'm creating a token and want to throw an error if the token expires. My token is created successfully and I'm checking the...
Read more >
Code 401: Expired JWT Token - Bobcares
FAILED: JWT token expired. Please check for JWT token in path “/etc/sysconfig/rhn/jwt.token”. Try running “rhn_check” for getting a new token ...
Read more >
How to resolve "Your token has expired" message when ...
The token expires 24 hours after being sent. There may be internet browser issues. If you received the above message once, please try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found