ory / ory/elements

Logout flow is redirect to wrong URL

Open
#555 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
187
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

No response

Describe the bug

Clicking on Logout button in Signin UI will lead to a broken URL.

My app is configure to run locally at port 8001, there should be noway that the UI redirect me to

https://identity-7fbf566ddc-kd7s4:3000/self-service/logout?token=ory_lo....

Image

Reproducing the bug

Using

"@ory/elements-react": "^1.0.0-rc.5",
"@ory/nextjs": "^1.0.0-rc.0",

Relevant log output

Relevant configuration

Version

"@ory/elements-react": "^1.0.0-rc.5", "@ory/nextjs": "^1.0.0-rc.0",

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Logout button behavior with @ory/elements-react 1.0.0-rc.5 and @ory/nextjs 1.0.0-rc.0 in the reported local setup. Trace how the logout URL is selected and verify that completion redirects to the application's local port rather than the broken identity host URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.