What's Changed
Refactor user session handling and update endpoints to v4 API.
- Added professional JSDoc comments for better code documentation and clarity.
- Updated function names to better reflect their purpose:
processUserSessionAndUpdate
: Handles user creation, logging, and token updates.getUser
: Fetches user details and updates access tokens if provided.
- Migrated the internal API to use the v4 API version instead of v3.
- Removed
useCreateIndex
anduseFindAndModify
from Mongoose connection options
as they are no longer supported in Mongoose v6+. - Ensured compatibility with modern Mongoose connection defaults.
- Improved error handling and validation messages for enhanced API robustness.
Full Changelog: 4.7.0...4.8.0