Skip to content

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

Merged
fozziethebeat merged 6 commits into
mainfrom
next-auth
Dec 16, 2022
Merged

Integrating Next-Auth to do user authentication on the website#10
fozziethebeat merged 6 commits into
mainfrom
next-auth

Conversation

@fozziethebeat
Copy link
Copy Markdown
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
Copy Markdown
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