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

Blank page after going to /app #31

Closed
Kaseax opened this issue Jan 24, 2024 · 11 comments
Closed

Blank page after going to /app #31

Kaseax opened this issue Jan 24, 2024 · 11 comments

Comments

@Kaseax
Copy link

Kaseax commented Jan 24, 2024

Hey, just tried to build the project by myself to do some pull requests. I set up every .env data but after logging in and going to /app it justs show the blank gradient background, the logout button at the top. there is no error, just this everytime I reload on /app:
<< query #1 user.me {
input: undefined,
result: { data: undefined, type: 'data' },
elapsedMs: 621
}

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

You need to manually trigger the clerk sign up webhook for it to create a user for you

@Kaseax
Copy link
Author

Kaseax commented Jan 24, 2024

what do you mean? The user is created on the Clerk Dashboard

@Kaseax
Copy link
Author

Kaseax commented Jan 24, 2024

Ah, I need to create Clerk endpoints?

@Kaseax
Copy link
Author

Kaseax commented Jan 24, 2024

just tried it, on signup it fails because it needs Authentication. How would look the Headers?

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

Did you added the clerk env's?

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

what do you mean? The user is created on the Clerk Dashboard

Yeah but its not created in database, You need to manually trigger /api/webhook/clerk

@Kaseax
Copy link
Author

Kaseax commented Jan 24, 2024

Did you added the clerk env's?

yes, sure. everything added

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

Did you added the clerk env's?

yes, sure. everything added

yeah you just need to trigger the webhook with clerk payload

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

or manually create your User in db using db studio

@Kaseax
Copy link
Author

Kaseax commented Jan 24, 2024

hmm, wouldn't it be better to do it the correct way so it's working completely?

that's my env:

NEXT_PUBLIC_CLERK_PUBLISHABLE: pk_test_..

CLERK_SECRET_KEY:
sk_test..

CLERK_WEBHOOK_SECRET:
clerk

@vanxh
Copy link
Owner

vanxh commented Jan 24, 2024

yes its correct but u need to enable webhook on clerk and delete your clerk user and re sign up then from the failed webhook request get the payload and manually make an api request to /api/webhook/clerk you can message on discord (vanxh) i can help you with it

@vanxh vanxh closed this as completed Jan 24, 2024
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