Skip to content

Commit

Permalink
feat!: merge signup into login and add oauth
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This removes the previous signup page. Its
functionality can be accessed from the login one.
Adds login using OAuth with the current providers being Discord and
GitHub.
Requires environment variables to be set for these providers.
  • Loading branch information
brckd committed Oct 14, 2024
1 parent 90b9c08 commit 63c166e
Show file tree
Hide file tree
Showing 26 changed files with 1,373 additions and 245 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ npm run dev
## Hosting

The Fancade Club uses [Netlify](https://netlify.com) and [Neon](https://neon.tech) to provide its services for free. For setting up these or other providers, see [Astro adapters](https://docs.astro.build/en/guides/server-side-rendering/) and [Drizzle setup](https://orm.drizzle.team/docs/get-started).
Also take a look at [the Astro configuration](./astro.config.mjs) for required environment variables.

## Disclaimer

Expand Down
20 changes: 20 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ export default defineConfig({
env: {
schema: {
DATABASE_URL: envField.string({ context: "server", access: "secret" }),
GITHUB_CLIENT_ID: envField.string({
context: "server",
access: "secret",
}),
GITHUB_CLIENT_SECRET: envField.string({
context: "server",
access: "secret",
}),
DISCORD_CLIENT_ID: envField.string({
context: "server",
access: "secret",
}),
DISCORD_CLIENT_SECRET: envField.string({
context: "server",
access: "secret",
}),
DISCORD_REDIRECT_URL: envField.string({
context: "server",
access: "secret",
}),
},
},
security: {
Expand Down
Loading

0 comments on commit 63c166e

Please sign in to comment.