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:
1 parent
528a1622d0
commit
7693a02c98
4 files changed
+66
-7
No files matched your search
@@ -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