chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Bug: Fix page blinking after login

Open ADWasHere opened this issue 1 month ago • 4 comments

When using the header_auth_callback and another auth callback for login, the page starts to "blink" as soon as a user logged in. This is because header_auth_callback always gets called when routing to the root.

Fix: Now when a user is already authenticated, the header_auth_callback won't be called Issue: #2599

ADWasHere avatar Nov 09 '25 00:11 ADWasHere

@cubic-dev-ai

constantinidan avatar Nov 12 '25 18:11 constantinidan

@cubic-dev-ai

@constantinidan 👋 Hi! I'm cubic, Here's how I can help with your PR:

Ask questions

  • @cubic-dev-ai why did you suggest this change?

Request reviews

  • @cubic-dev-ai review this - Run a code review

Give feedback

  • @cubic-dev-ai this suggestion doesn't work for our use case

Request fixes

  • @cubic-dev-ai fix this - Generate a fix for the code. cubic will create a PR that merges into your branch.

cubic-dev-ai[bot] avatar Nov 12 '25 18:11 cubic-dev-ai[bot]

@cubic-dev-ai review this

constantinidan avatar Nov 12 '25 18:11 constantinidan

@cubic-dev-ai review this

@constantinidan I've started the AI code review. It'll take a few minutes to complete.

cubic-dev-ai[bot] avatar Nov 12 '25 18:11 cubic-dev-ai[bot]