fix(auth): add bearer token auth as fallback for Android WebView third-party cookie blocking

Android WebView blocks third-party cookies by default. This patch:
- Returns session token in login/register response body
- Stores token in localStorage, sends via Authorization: Bearer header
- Backend getCurrentUser supports Authorization header fallback

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-15 19:43:02 +07:00
co-authored by Claude
parent 528a1622d0
commit 7693a02c98
4 changed files with 66 additions and 7 deletions
+1
View File
@@ -66,6 +66,7 @@ export type RegisterRequest = AuthRequest & {
export type AuthResponse = {
user: AuthUser;
features: AuthFeatures;
token?: string;
};
export type DiagnosisPrediction = {