Repository navigation
Backend Integration with Convex
🚀 Release v2.1.0 – Backend Integration with Convex
🔗 What’s New
We’ve successfully integrated a backend using Convex to handle authentication and user management. This marks a big step forward in making our app functional and scalable.
✨ Features Added
-
User Registration / Create Account
- New users can now register with
username,email, andpassword. - Automatic
createdAttimestamp is saved when the account is created.
- New users can now register with
-
User Login
- Users can log in securely with their registered email/username and password.
- Authentication checks are handled through Convex queries.
Screenshot
🛠 Schema Updates
We added a users table with indexes for fast lookups:
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";
export default defineSchema({
users: defineTable({
username: v.string(),
email: v.string(),
password: v.string(),
createdAt: v.number(),
})
.index("byEmail", ["email"])
.index("byUsername", ["username"]),
});✅ Improvements
- Backend now supports structured user data.
- Faster queries using
byEmailandbyUsernameindexes. - Foundation set for adding more features like profile management and sessions.
Full Changelog: v2.0.0...v3.0.0