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

feat(dx-improve): Added modifications in auth.tsx and server.ts to handle missing .env variables when running quickstart. #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oindrila-b
Copy link
Contributor

Description

FEATURE PR : Previously our app would redirect to a 404 Not Found screen when the user would try to login without setting the Google Credentials. To improve the user experience, we added a prompt that shows a Configuration Error when the user tries to login without having set the Google Credentials. This is a better user experience than a 404 screen.

Testing

Tested locally without setting .env variables and running quickstart.

Additional Notes

No notes so far.

@oindrila-b oindrila-b changed the title feat(sx-improve): Added modifications in auth.tsx and server.ts to handle missing .env variables when running quickstart. feat(dx-improve): Added modifications in auth.tsx and server.ts to handle missing .env variables when running quickstart. Jan 29, 2025
@@ -214,6 +214,21 @@ const generateToken = async (
const jwtToken = await sign(payload, jwtSecret)
return jwtToken
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm a separate route to handle if .env is setup correctly or not.
any alternative like in the get user call itself sending metadata about the setup if user is admin role and above?

@zereraz zereraz requested a review from kalpadhwaryu February 3, 2025 07:10
@zereraz zereraz force-pushed the missing-env-handling branch from 9a2338d to f2a1374 Compare February 11, 2025 08:39
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