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

TypeError: Redirected path should match configured path, but got: /en/payment-list #202

Open
valearkot opened this issue Apr 28, 2021 · 1 comment

Comments

@valearkot
Copy link

Good afternoon, after the user logs into the kontist, an error appears about the wrong redirected path, what could be the problem?
Yesterday everything worked, the code after that did not change the code and the redirected path to the kontist too, connected the SDK through the CDN and downloaded it through the npm, tried different versions, but the error is the same " Redirected path should match configured path, but got: /en/payment-list"
Below is the code
const client = new Kontist.Client({ clientId: "*********************", redirectUri: "https://fiyou.de/payment-list", scopes: ["transactions", "transfers"], state: sessionStorage.getItem("state"), verifier: sessionStorage.getItem("verifier") });

@johannespfeiffer
Copy link
Contributor

Hi @valearkot,

I am not aware of any related changes. Seems to be a message from the underlying oauth2 library, see https://github.com/mulesoft-labs/js-client-oauth2/blob/68d2a71565641d321148798d7df9d78a3182e584/src/client-oauth2.js#L483.

Does it work with "https://fiyou.de/**en/**payment-list" as a redirect uri?

Is there an automatic redirect from https://fiyou.de/payment-list to https://fiyou.de/en/payment-list?

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