mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix: tighten edge cases across services (#3158)
This commit is contained in:
1 parent
a9f7a23c0d
commit
4e6b837ccc
170 files changed
+2028
-421
No files matched your search
@@ -90,6 +90,7 @@ type UserUpdatePayload = Partial<UserPrivate> & {
|
||||
};
|
||||
type UserUpdateResponse = UserPrivate & {
|
||||
token?: string;
|
||||
auth_session_id_hash?: string;
|
||||
};
|
||||
|
||||
interface HarvestRequestResponse {
|
||||
@@ -203,6 +204,11 @@ export async function update(user: UserUpdatePayload): Promise<UserUpdateRespons
|
||||
logger.debug(`Updated fields: ${updatedFields.join(', ')}`);
|
||||
}
|
||||
if (userData.token) {
|
||||
SessionManager.setToken(userData.token);
|
||||
GatewayConnection.setToken(userData.token);
|
||||
if (userData.auth_session_id_hash) {
|
||||
AuthSession.handleAuthSessionChange(userData.auth_session_id_hash);
|
||||
}
|
||||
logger.debug('Authentication token was refreshed');
|
||||
}
|
||||
return userData;
|
||||
|
||||
Reference in new issue
Block a user