Skip to content

feat: implement user onboarding and profile API with Prisma and sessi…#242

Merged
Baskarayelu merged 5 commits intoRemitwise-Org:mainfrom
codewithzubair07:feature/user-onboarding-profile-api-155
Feb 27, 2026
Merged

feat: implement user onboarding and profile API with Prisma and sessi…#242
Baskarayelu merged 5 commits intoRemitwise-Org:mainfrom
codewithzubair07:feature/user-onboarding-profile-api-155

Conversation

@codewithzubair07
Copy link
Contributor

Implemented

  • Added Prisma-backed user upsert on wallet login
  • Implemented GET /api/user/profile
  • Implemented PATCH /api/user/preferences
  • Enforced requireAuth middleware
  • Added 404 handling for non-existent users
  • Replaced in-memory mock storage with DB persistence

Authentication

  • Session-based auth using iron-session
  • User resolved via stellar_address from session

🗄 Database

  • Uses existing User and UserPreference models
  • Automatically creates default preferences on first login

Closes #155

@Baskarayelu
Copy link
Contributor

@codewithzubair07 please resolve the conflicts

@codewithzubair07 codewithzubair07 force-pushed the feature/user-onboarding-profile-api-155 branch from 9002ac1 to b329144 Compare February 25, 2026 19:27
@codewithzubair07
Copy link
Contributor Author

@Baskarayelu all issues resolved !!

@Baskarayelu
Copy link
Contributor

@codewithzubair07 Can you please resolve the conflicts?

@codewithzubair07 codewithzubair07 force-pushed the feature/user-onboarding-profile-api-155 branch from b991d0f to 0f9dac3 Compare February 26, 2026 18:32
@Baskarayelu Baskarayelu merged commit 6cbfffd into Remitwise-Org:main Feb 27, 2026
0 of 2 checks passed
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.

User Onboarding and Profile API

2 participants