Skip to content

Consolidate Clerk integration files - #17

Merged
SaravanakumarR2018 merged 1 commit into
9r8oht-codex/integrate-clerk-authentication-flowfrom
codex/reduce-number-of-new-files-in-pr
Jul 6, 2025
Merged

Consolidate Clerk integration files#17
SaravanakumarR2018 merged 1 commit into
9r8oht-codex/integrate-clerk-authentication-flowfrom
codex/reduce-number-of-new-files-in-pr

Conversation

@SaravanakumarR2018

Copy link
Copy Markdown
Owner

Summary

  • combine Clerk token refresh doc with env sample in clerk-auth.md
  • collect Clerk helper utilities in src/frontend/src/clerk/auth.tsx
  • merge login pages and conditional route exports in login-pages.tsx
  • keep env example in .env.clerk.example
  • update imports to use new modules

Testing

  • pre-commit run --files docs/docs/Integrations/clerk-auth.md src/frontend/src/clerk/auth.tsx src/frontend/src/clerk/login-pages.tsx src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx src/frontend/src/controllers/API/queries/auth/use-post-refresh-access.ts src/frontend/src/index.tsx src/frontend/src/routes.tsx

https://chatgpt.com/codex/tasks/task_e_686a0f4b20ec8326ade3d2a04608981d

@SaravanakumarR2018
SaravanakumarR2018 merged commit 2a81f60 into 9r8oht-codex/integrate-clerk-authentication-flow Jul 6, 2025
8 of 11 checks passed
@autofix-troubleshooter

Copy link
Copy Markdown

Hi! I'm the autofix logoautofix.ci troubleshooter bot.

It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃

SaravanakumarR2018 pushed a commit that referenced this pull request Aug 5, 2025
* revert env example to exclude Clerk settings

* chore: store Clerk token in cookie (#14)

* Wrap logout mutation with Clerk signout (#15)

* refactor: move clerk mock mutation to util (#16)

* restore env example and clean doc (#17)

* docs: move clerk env vars to integration guide (#18)

* fix: replace logout import path (#19)

* Clerk auth frontend (#22)

* refactor: update auth and login pages to signup users

* updated imports in clerk_utils.py

* modified clerk_auth and login-page.tsx

* updated context-wrapper

* updated context-wrapper

* modified use-post-refresh-access.ts

* add new file for clerk constants

* modified autologin for clerk auth

* add token refresh effect in auth.tsx

* Ruff check resolved

* Ruff check resolve changes

* imported the enum and remove the logs

* removed constant file

* update imports in login page.tsx

* updated imports in index.tsx file

* update imports in use get auto login.tsx file

* updated imports in use post refersh access.tsx file

* Clerk token verify (#28)

* added protected paths in login api

* added bearer token in header

* ruff check fix

* update log level for auth, login-pages, use-get-autologin

* signup comment modified

* Add Clerk auth settings (#30)

* Fix logout in docker (#40)

* update make file to inject build args in docker

* update docker file to load env

* modified constant.ts

* Update Makefile and Dockerfile to replace LANGFLOW_AUTO_LOGIN with VITE_AUTO_LOGIN

* modified constant.ts

---------

Co-authored-by: Bharanitharan <109167711+Bharani0012@users.noreply.github.com>
Co-authored-by: unknown <kabik5095@gmail.com>
Co-authored-by: Kabilan A <147593493+Kabilan-16@users.noreply.github.com>
Co-authored-by: Bharani0012 <bharanitharan695@gmail.com>
Bharani0012 added a commit that referenced this pull request Sep 3, 2025
* revert env example to exclude Clerk settings

* chore: store Clerk token in cookie (#14)

* Wrap logout mutation with Clerk signout (#15)

* refactor: move clerk mock mutation to util (#16)

* restore env example and clean doc (#17)

* docs: move clerk env vars to integration guide (#18)

* fix: replace logout import path (#19)

* Clerk auth frontend (#22)

* refactor: update auth and login pages to signup users

* updated imports in clerk_utils.py

* modified clerk_auth and login-page.tsx

* updated context-wrapper

* updated context-wrapper

* modified use-post-refresh-access.ts

* add new file for clerk constants

* modified autologin for clerk auth

* add token refresh effect in auth.tsx

* Ruff check resolved

* Ruff check resolve changes

* imported the enum and remove the logs

* removed constant file

* update imports in login page.tsx

* updated imports in index.tsx file

* update imports in use get auto login.tsx file

* updated imports in use post refersh access.tsx file

* Clerk token verify (#28)

* added protected paths in login api

* added bearer token in header

* ruff check fix

* update log level for auth, login-pages, use-get-autologin

* signup comment modified

* Add Clerk auth settings (#30)

* chore: remove organisation service tests

* Refine Clerk token handling

* refactor: simplify org db service retrieval

* refactor: allow disabling org db service

* feat: provide organisation-agnostic db session

* feat(auth): add multi-tenant setup for Langflow with Clerk integration

- Introduced multi-organization flow in frontend (auth guards, routes, org page)
- Updated backend services (auth, organisation, deps) for Clerk multi-tenant support
- Synced organization creation with frontend API hooks
- Improved initial app setup for multi-org handling

* modified auth.tsx

* modified OrganizationPage.tsx

* modified token sync in auth.tsx

* modified auth.tsx

* modified clerk_utils, auth.tsx, organizationPage.tsx

---------

Co-authored-by: Saravana Kumar Rajendran <srajendran@microsoft.com>
Co-authored-by: unknown <kabik5095@gmail.com>
Co-authored-by: Kabilan A <147593493+Kabilan-16@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants