Replies: 1 comment
-
I think I got this to work for the browser side expired check:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. Jose looks great --- choosing over other libs because it supports nodejs and browser, and documentation looks good. Except I can't figure out how to do my basic custom use-case.
I just need an expiration and to check if a string matches. I'm using
sub
but I can easily switch to something else if it make verify step easier. I just want to use a HS256 secret. My payload:BROWSER side I will not have the HS256 secret, but I still want to know is the token is expired so the browser can ask for a new one before using it.
NODEJS server side I WILL know the HS256 secret, I want to verify that a Bearer token is valid, not expired, and sub matches. I think it's a try catch somehow, but I can't find an example anywhere?
Thanks for any help. I don't think my use-case is odd? Why not any examples anywhere?
Beta Was this translation helpful? Give feedback.
All reactions