Skip to content

feat(web): add Better Auth client integration (#114) - #129

Merged
Basharkhan7776 merged 1 commit into
Openlabsops:mainfrom
RAHULDINDIGALA-32:feature/better-auth-client-114
Sep 20, 2026
Merged

Basharkhan7776 merged 1 commit into
Openlabsops:mainfrom
RAHULDINDIGALA-32:feature/better-auth-client-114

Conversation

@RAHULDINDIGALA-32

Copy link
Copy Markdown
Contributor

Summary

Integrates the Better Auth React client into the web application for cookie-based session authentication with the Express API. This PR also fixes a workspace TypeScript export-resolution issue that prevented the Next.js app from building.

Changes Made

  • Added better-auth as a dependency of apps/web.
  • Added apps/web/lib/auth-client.ts.
  • Configured the auth client with NEXT_PUBLIC_API_URL.
  • Configured credentials: "include" for cookie-based session handling.
  • Exported authClient, signIn, signOut, useSession, and getSession.
  • Corrected @repo/types barrel exports to use extensionless source imports, resolving Turbopack’s inability to resolve non-existent .js files from TypeScript source.
  • Updated bun.lock.

Testing

  • bun run lint passes.
  • bun run test passes: 11 tests.
  • bunx tsc --noEmit passes.
  • bun run build passes.
  • Manual testing completed
  • No regressions introduced

Related Issues

Screenshots (if applicable)

Not applicable, as this PR adds client-side authentication infrastructure without visual UI changes.

Checklist

  • Code follows project conventions.
  • Tests pass.
  • Documentation updated where needed through this PR description.
  • No linting errors.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 4e584ed4-674f-4cbf-bfd8-e1f7bb418ce0


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Basharkhan7776 Basharkhan7776 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this PR, all clear

@Basharkhan7776
Basharkhan7776 merged commit d4ac7ac into Openlabsops:main Sep 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Better Auth Client Integration in Web

2 participants