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

Integrating Next-Auth to do user authentication on the website #10

Merged
merged 6 commits into from
Dec 16, 2022

Conversation

fozziethebeat
Copy link
Collaborator

This updates the website to provide two forms of user authentication (Discord & Email) and then proxies data requests to the FastAPI backend while keeping the client api key secure. This also registered newly signed up users to the labeler backend.

The UI is still pretty ugly and not useful in any way.

Copy link
Collaborator

@yk yk left a comment

Choose a reason for hiding this comment

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

lgtm

suggestion for improvement: use nextjs runtime configuration (https://nextjs.org/docs/api-reference/next.config.js/runtime-configuration)
the reason is: process.env is grabbed at build-time in many places, so we'd have to include secrets into the docker build, which is suboptimal. with runtime configuration, we can supply environment variables at runtime

@fozziethebeat fozziethebeat merged commit 88628d7 into main Dec 16, 2022
@fozziethebeat fozziethebeat deleted the next-auth branch December 16, 2022 00:21
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