[bug] onboarding: fix infinite loop when using GCP IAP (#381)

Co-authored-by: Michael Sukkarieh <michael.sukkarieh@mail.mcgill.ca>
This commit is contained in:
drew-u410 2025-07-25 15:03:50 -04:00 committed by GitHub
parent 74e37d129c
commit 4e34406386
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
### Added
- Introducing Ask Sourcebot - ask natural langauge about your codebase. Get back comprehensive Markdown responses with inline citations back to the code. Bring your own LLM api key. [#392](https://github.com/sourcebot-dev/sourcebot/pull/392)

View file

@ -94,7 +94,8 @@ export default async function Layout({
}
}
if (!org.isOnboarded) {
// If the org is not onboarded, and GCP IAP is not enabled, show the onboarding page
if (!org.isOnboarded && !(env.AUTH_EE_GCP_IAP_ENABLED && env.AUTH_EE_GCP_IAP_AUDIENCE)) {
return (
<OnboardGuard>
{children}