Skip to content

feat(auth): add login API client - #442

Merged
zigzagdev merged 2 commits into
feat/user-login-typefrom
feat/user-login-api
Jul 27, 2026
Merged

zigzagdev merged 2 commits into
feat/user-login-typefrom
feat/user-login-api

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Summary

  • Add createAuthApi (login / logout / getCurrentUser) targeting the real backend routes (/api/v1/user/login, /api/v1/user/logout, /api/v1/user/me)
  • Backend auth is Sanctum in Bearer-token mode (confirmed against the running backend), not SPA cookie/CSRF — login returns a token, logout/getCurrentUser send Authorization: Bearer <token>

Related

Part of #435 (types were split out separately into #433)

Test plan

  • npx tsc --noEmit
  • npx jest src/app/features/auth/apis

@zigzagdev zigzagdev self-assigned this Jul 21, 2026
@zigzagdev zigzagdev linked an issue Jul 27, 2026 that may be closed by this pull request
2 tasks

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@zigzagdev
zigzagdev merged commit a847e5f into feat/user-login-type Jul 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: ログイン用の型とAPIクライアントを追加

1 participant