feat: return access token on user registration #41

Closed
opened 2026-04-10 03:27:07 +02:00 by shoko · 0 comments
Owner

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.

## 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.
shoko closed this issue 2026-04-10 03:31:16 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#41