Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to validate token #10

Open
ruralcoder opened this issue Dec 11, 2020 · 1 comment
Open

Unable to validate token #10

ruralcoder opened this issue Dec 11, 2020 · 1 comment

Comments

@ruralcoder
Copy link

Screen Shot 2020-12-11 at 3 24 38 PM

I took your example and changed it a tiny bit.

I produce the token as you did, but just print the output so i can take then token and put it inside the injector.
When I inject the token to the validator, i always get TokenExpiredError: jwt expired even though the token is freshly created.

[{"id":"962b3fde.a6797","type":"inject","z":"5a455541.3fdcac","name":"","props":[{"p":"token","v":"eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6InJzYV9wcml2X2tleSJ9.eyJzdWIiOiJ1c2VyIiwiaXNzIjoiaHR0cDovL25vZGVyZWQubnVsbGkuY29tOjE4ODAvb2F1dGgyIiwidG9rZW5OYW1lIjoiaWRfdG9rZW4iLCJhdWQiOiJjbGllbnQiLCJhenAiOiJjbGllbnQiLCJ0b2tlblR5cGUiOiJKV1RUb2tlbiIsImlhdCI6MTYwNzcyOTAzMywiZXhwIjoxNjA3NzI5MDM2fQ.D044lZBYio6QeHqboCRYlJTgHrciAuuJozM1QtVHQiS_Kdbh-cQseMjkViD_alOj4orgDNLrRH7p1my5cbQhKgVEoibUgyGfKAVE7z5QWrvQdH3KMZbefNJl0c1mQ2QKAq1bEtYlZtRgWLJD97ydi4mpRPTla8jwutlPoJdDHnMW0lm-AxsH7BFijgWGXy5SA-luogMQB-YGMJkMIiU0mMZY2ELJclJVwgIDZrNB_qD7dkeT1SOqCl-cQOs3YC2eyViIgfvtkrRkgYkdk2WCtfFw1imfOP47RUWqIMtVpdNBZxt4QSo_ypYnnah3MxP8q8Y3-xU1BLSbHxGmJNormA","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":390,"y":300,"wires":[["d6f89849.4d8f88"]]}]
@martenjacobs
Copy link

@ruralcoder I hit the same issue. It seems the (embedded) documentation wrongly states that the expiration value is second-based. It's actually in milliseconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants