Skip to content

feat(auth): add demo user seeding for local development#4

Open
Ayush9791 wants to merge 1 commit into
imanchalsingh:mainfrom
Ayush9791:main
Open

feat(auth): add demo user seeding for local development#4
Ayush9791 wants to merge 1 commit into
imanchalsingh:mainfrom
Ayush9791:main

Conversation

@Ayush9791
Copy link
Copy Markdown

@Ayush9791 Ayush9791 commented May 26, 2026

Description

This PR improves the local development and contributor onboarding experience by adding automatic demo user seeding and updating the backend setup flow

##Type of Change

  • [✅] Bug fix
  • [✅] New feature
  • Documentation update
  • Refactoring

Changes

  • Added "seedDemoUser.js" utility to create demo user automatically if it does not already exist
  • Prevented repeated demo user creation by checking existing records
  • Improved local authentication setup for fresh MongoDB instances

Problem Solved

Previously, the frontend displayed demo login credentials, but fresh local database setups does not contain the demo user, causing login attempts to fail with "401 Unauthorized".

This PR ensures contributors can run the project locally without manually inserting demo authentication data.

Checklist

  • [✅] Code follows project style
  • [✅] Tested locally
  • Updated documentation

@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

👷 Deploy request for file-sharingsystem pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9c1a8f1

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

@Ayush9791 is attempting to deploy a commit to the imanchalsingh Team on Vercel.

A member of the Team first needs to authorize it.

@imanchalsingh imanchalsingh added SSoC26 Official label of org Easy Point - 20 labels May 27, 2026
@imanchalsingh imanchalsingh assigned Ayush9791 and unassigned Ayush9791 May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Easy Point - 20 SSoC26 Official label of org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants