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

use authjs env vars #162

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

aryasaatvik
Copy link
Contributor

@aryasaatvik aryasaatvik commented Jul 25, 2024

Migrate AuthJS to Environment Variables

Overview

This PR uses auth.js environment variables for simpler provider configuration.

Changes

  • Key Changes:
    • Moved AuthJS configuration to environment variables.
    • Created a .dev.vars.example file for setting up environment variables.
    • Updated env.d.ts to reflect the new environment variables.
  • New Features: None
  • Refactoring:
    • Refactored the auth.ts file to use environment variables for AuthJS configuration.

✨ Generated with love by Kaizen ❤️

Original Description None

apps/web/env.d.ts Outdated Show resolved Hide resolved
@aryasaatvik
Copy link
Contributor Author

Code Review

Attention Required: This PR has potential issues. 🚨

Provider Configuration

--> The configuration for the Google provider is incomplete and may lead to runtime errors.

✨ Generated with love by Kaizen ❤️

Useful Commands

!feedback No, environment variables prefixed with AUTH_PROVIDER_ are used by default

@Dhravya
Copy link
Collaborator

Dhravya commented Jul 30, 2024

noice.

Copy link
Contributor

kaizen-bot bot commented Jul 30, 2024

Code Review

All Clear: This PR is ready to merge! 👍

Error Handling

Add error handling for missing environment variables.

Potential Solution:

Implement checks to ensure required environment variables are present at startup.

apps/wecf-env.d.ts | 3 - 3

reason_for_request: If environment variables are not set, the application may fail silently or crash unexpectedly.

level: [critical] , severity: [8]

✨ Generated with love by Kaizen ❤️


Useful Commands
  • Feedback: Reply with !feedback [your message]

  • Ask PR: Reply with !ask-pr [your question]

  • Review: Reply with !review

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