ory / integrations

Apache License 2.0
19 stars 24 forks source link

Path redirections not working as expected #42

Open kevinsmouts opened 1 year ago

kevinsmouts commented 1 year ago

Ory allows Browser Redirects to be either full URLs or Paths.

With NextJS, a "Browser Redirect" path of "/" will redirect to "http://localhost:3000/api/.ory/" instead of "http://localhost:3000/".

Since relative paths are not accepted, it is very difficult to validate the authentication flow outside of production.

kevinsmouts commented 1 year ago

I've created a pull request to illustrate my issue:

https://github.com/ory/integrations/pull/43