-
Notifications
You must be signed in to change notification settings - Fork 74
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
trying test expired token #111
Comments
@haromy are you using the token on a different URL than you are getting the token from? the This error means that the domain encoded in the token by the server that issued the token doesn't match the server that's trying to decode and use the token. Did you get a token from a staging server and use it on a production server or something along those lines? |
hi @jasonbahl and after 2 hours for checking in the source code, I'm found issue from this code
I`m changing it to
in source code
I`m changing it to
I saw on the source code src/Auth.php for function after change the code like on top, the response change to
|
I'm still trying figure out how to change http status to 401 (Token Expired). |
You can set |
Hi @haromy, is there any progress in this problem? It is still returns a debug message "invalid-jwt | The iss do not match with this server" with 200 http response code. |
I opened #137. Though no commits in this repo since August last year doesn't seem promising - is anyone still maintaining this plugin? |
I also had this error and fixed it. The error is not from the plugin. In my ReactJs code there is a problem. Need to check and delete localStorage when token expires. |
I'm experiencing this same problem. Would love to know the status of this repo and if its abandoned or not. |
@eavonius I've not been actively using it myself in projects, so it's been stale for sure. I realize it's important to a lot of folks in the WPGraphQL ecosystem, so I'll try to keep it a bit better updated, but I would also encourage forks or other solutions that solve the same problem. I would love to see other solutions from the community that don't rely an me as a bottleneck. |
@jasonbahl What have you been using? :) |
@grazianodev a lot of the stuff I personally work on uses WPGraphQL in the admin area of WordPress, so I use the existing logged in user cookie. For example, how the GraphiQL IDE in the WP Admin works: https://github.com/wp-graphql/wp-graphql/blob/develop/packages/wpgraphiql/utils/fetcher.js#L11-L23 |
I'm trying testing expired token
test via postman
after login, I'm waiting for 5 minutes, for testing
token expired
but get a response like this one
is there anything I'm missing for setup?
The text was updated successfully, but these errors were encountered: