feat: return access token on user registration #42

Merged
shoko merged 1 commits from feat/41-return-token-on-register into main 2026-04-10 03:31:16 +02:00
Owner

Summary

After successful registration, the backend now returns an access token so the frontend can immediately proceed with authentication flow.

Changes

Modified endpoint to return Token response (access_token + token_type) instead of UserResponse.

Before

After

Testing

Frontend can now:

  1. Store the token in localStorage
  2. Call /api/auth/me to get user profile
  3. Redirect to dashboard

Closes #41

## Summary After successful registration, the backend now returns an access token so the frontend can immediately proceed with authentication flow. ## Changes Modified endpoint to return Token response (access_token + token_type) instead of UserResponse. ## Before ## After ## Testing Frontend can now: 1. Store the token in localStorage 2. Call /api/auth/me to get user profile 3. Redirect to dashboard Closes #41
shoko added 1 commit 2026-04-10 03:28:17 +02:00
After successful registration, the backend now returns an access token
(along with token_type) so the frontend can:
- Store the token in localStorage
- Fetch the user profile
- Redirect to dashboard

Fixes #41
han approved these changes 2026-04-10 03:30:59 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 75970c57e3 into main 2026-04-10 03:31:16 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#42