oidc-client
oidc-client copied to clipboard
state not valid (expected: kA6pgvCtBpauwMl0, received: myState)
Issue and Steps to Reproduce
when Redirect to auth server after sucess login and redirect back to client callback url dotn call token and show error in console state not valid. i create auth server with @node-oauth/oauth2-server this my config:
configuration={
authority: "http://localhost:7003",
client_id: "myClient",
redirect_uri: "http://localhost:5173/cb",
scope: "profile",
authority_configuration: {
authorization_endpoint: "http://localhost:7003/oauth",
token_endpoint: "http://localhost:7003/oauth/token",
issuer: "http://localhost:7003",
revocation_endpoint: "http://localhost:7003/revocation",
},
token_request_extras: {
client_secret: "test_secret",
},
storage: localStorage,
}
if see second screenshot after redirect to callback, you don't see any token call
Versions
7.13.7-alpha.1239
Screenshots
Hi @hmz22 , thank you for your issue. It seem your server send back in the mySate information inside the callback url.
You can send extra parameter to the login function like {state:"myState"} it should (not sure) work if your oidc server always send myState back.
Hi @hmz22 did it solve your issue?
Hi @hmz22 did you solve your issue ?