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:
@@ -66,6 +66,7 @@ export type RegisterRequest = AuthRequest & {
|
||||
export type AuthResponse = {
|
||||
user: AuthUser;
|
||||
features: AuthFeatures;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
export type DiagnosisPrediction = {
|
||||
|
||||
Reference in New Issue
Block a user