Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Failure in sign in with Google #5

Open
avibathula opened this issue Sep 11, 2024 · 1 comment
Open

BUG: Failure in sign in with Google #5

avibathula opened this issue Sep 11, 2024 · 1 comment

Comments

@avibathula
Copy link

Hi - just followed your instructions and didn't do much. Within Clerk I enabled Google authentication in Clerk and the initial website opened up properly. HURRAY!!!! 👍

When I attempted to sign in, Clerk took me through the google auth and then I see "Dashboard" button instead of text link asking me to sign in - seem to be second HURRAY!!!! 👍 👍

When I click on "Dashboard" - I am seeing

 GET / 200 in 935ms
 ○ Compiling /[locale]/dashboard ...
 ✓ Compiled /[locale]/dashboard in 1672ms (4778 modules)
 GET /dashboard?_rsc=14foe 200 in 6507ms
 ⨯ src/libs/database/utils.ts (38:22) @ getSignedInUserOrThrow
 ⨯ Error: User not signed in
    at getSignedInUserOrThrow (./src/libs/database/utils.ts:37:22)
    at async getUserRecentTodoItems (./src/libs/database/functions/todo/getUserRecentTodoItems.ts:14:26)
    at async Dashboard (dashboard/page.tsx:17:29)
digest: "2725572128"
  36 | export async function getSignedInUserOrThrow(include?: Prisma.UserInclude) {
  37 |     const user = await getSignedInUser(include);
> 38 |     if (!user) throw new Error('User not signed in');
     |                      ^
  39 |
  40 |     return user;
  41 | }

and the UI is showing "Something is wrong" .... NOT HURRAY 👎 👎 👎

@brycebayens
Copy link

Same!

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

No branches or pull requests

2 participants