feat: return access token on user registration #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
After successful registration, users are not redirected to the dashboard because the frontend expects an access token but the backend does not return one on registration.
Backend /api/auth/register returns user data but no access token.
Expected Behavior
After successful registration, the backend should return an access token so the frontend can store it and redirect the user to the dashboard.
Suggested Solution
Modify the register endpoint to return both the user data and an access token, similar to login response.