Skip to content

feat(auth): Setup better-auth client with signup, login and OAuth#23

Merged
Nirbhay21 merged 1 commit into
mainfrom
feature/setup-better-auth-client
Feb 3, 2026
Merged

feat(auth): Setup better-auth client with signup, login and OAuth#23
Nirbhay21 merged 1 commit into
mainfrom
feature/setup-better-auth-client

Conversation

@Nirbhay21
Copy link
Copy Markdown
Owner

Summary

  • Added Better Auth client with inferred user fields
  • Implemented email signup and signin flows
  • Integrated Google & GitHub OAuth with proper UX states
  • Centralized auth validation using Zod + React Hook Form

Scope

Frontend authentication setup only:

  • Better Auth client configuration
  • Email/password signup and login
  • Google & GitHub OAuth integration
  • Auth form validation and UX improvements

What

  • Added Better Auth client (auth-client.ts) with inferred fields (role, termsAccepted)
  • Implemented email signup & signin using Better Auth APIs
  • Added Google and GitHub OAuth with loading, error, and redirect handling
  • Introduced Zod schemas for signup and signin validation
  • Improved auth form UX (errors, loading states, disabled states)
  • Updated dependencies and lockfile to support auth setup

Why

  • SmartAssess requires secure authentication for recruiters and candidates
  • Centralized auth logic simplifies future auth-related features
  • OAuth support reduces signup friction

Testing

  • Manual testing of email signup and signin
  • OAuth login tested for Google and GitHub
  • Form validation errors verified (invalid input, password mismatch, terms acceptance)

@Nirbhay21
Copy link
Copy Markdown
Owner Author

@copilot Why github action is not running?

Copy link
Copy Markdown

Copilot AI commented Feb 3, 2026

@Nirbhay21 I've opened a new pull request, #24, to work on those changes. Once the pull request is ready, I'll request review from you.

@Nirbhay21
Copy link
Copy Markdown
Owner Author

@copilot sorry i understand, this repo dont have CI it was in SmartAssess-backend repo, so please close you PR.

Copy link
Copy Markdown

Copilot AI commented Feb 3, 2026

@Nirbhay21 I've opened a new pull request, #25, to work on those changes. Once the pull request is ready, I'll request review from you.

@Nirbhay21 Nirbhay21 merged commit 817b3a7 into main Feb 3, 2026
@Nirbhay21 Nirbhay21 deleted the feature/setup-better-auth-client branch February 3, 2026 12:43
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.

2 participants