You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @wolfsilver! I'm here to assist you with bug fixes, answer your questions, and guide you on becoming a contributor. Let's work together to resolve any issues you encounter.
To fetch the current user's information without an ID using a token, you can leverage the existing authentication service in the Blinko codebase. The getToken function in src/server/routers/helper/index.ts retrieves a token and can extract user information from it. This function uses the next-auth/jwt package to handle token extraction:
You can modify the /v1/user/detail endpoint to use this function to obtain the current user's details based on the token, instead of requiring an ID [1].
- Updated user detail retrieval to handle optional user ID
- Enhanced error handling for user registration and update
- Refined error codes for username conflicts
- Simplified user creation and update validation checks
These changes improve the robustness of user authentication and registration processes.#
/v1/user/detail
requires the id parameter.If don't have an id, could return information about the current user?
The text was updated successfully, but these errors were encountered: