• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jcubic / 10xDevs / 18576769897

16 Oct 2025 10:40PM UTC coverage: 21.22% (-0.1%) from 21.335%
18576769897

push

github

jcubic
fix: implement proper GitHub OAuth using client-side authClient.signIn.social()

- Replace incorrect server-side redirect approach with Better Auth client method
- Create GitHubSignInButton component using authClient.signIn.social()
- Remove server action and use proper OAuth flow for GitHub authentication
- This should resolve the 404 error on /api/auth/sign-in/github in production

63 of 89 branches covered (70.79%)

Branch coverage included in aggregate %.

0 of 36 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

424 of 2206 relevant lines covered (19.22%)

2.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

2.94
/src/components/GitHubSignInButton.tsx
1
'use client';
1✔
2

NEW
3
import { Button } from '@chakra-ui/react';
×
NEW
4
import { useState } from 'react';
×
NEW
5
import { authClient } from '@/lib/auth-client';
×
6

NEW
7
export default function GitHubSignInButton() {
×
NEW
8
  const [isLoading, setIsLoading] = useState(false);
×
9

NEW
10
  const handleGitHubSignIn = async () => {
×
NEW
11
    try {
×
NEW
12
      setIsLoading(true);
×
NEW
13
      await authClient.signIn.social({
×
NEW
14
        provider: 'github',
×
NEW
15
        callbackURL: '/'
×
NEW
16
      });
×
NEW
17
    } catch (error) {
×
NEW
18
      console.error('GitHub sign-in error:', error);
×
NEW
19
      setIsLoading(false);
×
NEW
20
    }
×
NEW
21
  };
×
22

NEW
23
  return (
×
NEW
24
    <Button
×
NEW
25
      onClick={handleGitHubSignIn}
×
NEW
26
      disabled={isLoading}
×
NEW
27
      size="lg"
×
NEW
28
      bg="gray.900"
×
NEW
29
      color="white"
×
NEW
30
      _hover={{
×
NEW
31
        bg: 'gray.700'
×
NEW
32
      }}
×
NEW
33
      px={8}
×
NEW
34
      py={6}
×
NEW
35
      width="full"
×
36
    >
NEW
37
      {isLoading ? 'Signing in...' : 'Continue with GitHub'}
×
NEW
38
    </Button>
×
39
  );
NEW
40
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc