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

Error: something is wrong after github login #14

Open
mworks-proj opened this issue Sep 26, 2023 · 4 comments
Open

Error: something is wrong after github login #14

mworks-proj opened this issue Sep 26, 2023 · 4 comments

Comments

@mworks-proj
Copy link

Hello,

I have made several attempts to resolve the issue, but it persists. My next course of action will involve overriding the next-auth module, as it appears to be the source of a login and verification error. I have successfully deployed the application multiple times, ensuring that the database is functioning correctly, Stripe integration is working, and updated pricing is displayed accurately. However, the error only manifests when attempting to log in, and it occurs almost immediately upon re-login.

To address this issue, I propose the following steps:

Reproduction: Clone the project from Vercel.
Verify that all environmental variables are correctly configured.
Review all login URLs for GitHub OAuth integration.
Test the application on a new laptop that has never visited the website (project.vercel.app).
Create a new GitHub account and observe that the app starts to display its UI but then crashes without displaying any code.

Upon closer examination, I have noticed that there is an API endpoint located at pages/marketing & /api/generate that calls to the main repository. These API calls are causing errors locally when rendering the page and may be the reason for the crashes. It's worth noting that the API usage on api/generate appears to be exhausted, indicating that it's making two API calls on the same page: one for tier data from the original repository and another for tier.run/stripe products.

I suggest investigating whether an update is required for the next-auth module to resolve the login issue. Additionally, we should consider whether it's necessary to retain the tier-api metadata for the original repository. It appears that fetching this metadata on every page/marketing click might be excessive and could contribute to performance issues.

Let's address these issues systematically to ensure the stability and efficiency of the application.

@mworks-proj mworks-proj changed the title Error: somthing is wrong after github login Error: something is wrong after github login Sep 26, 2023
@jerriclynsjohn
Copy link
Collaborator

I'm not able to recreate this problem. The next auth module perfectly fine and I'm able to log in and complete a subscription as well.

@jerriclynsjohn
Copy link
Collaborator

Can you join our community in Slack and DM me, we might need to exchange some secrets to get this sorted. https://tier.run/slack

@mworks-proj
Copy link
Author

well.

Can you share the link to your working repo,

@mworks-proj
Copy link
Author

Can you join our community in Slack and DM me, we might need to exchange some secrets to get this sorted. https://tier.run/slack

Can you share link again? I'm revisiting this idea looking to resolve the auth. Thanks

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