Skip to content

Commit 2ceb0ee

Browse files
fix: (Extension) fixed Access ID saving to cloudBridgeCredentials but loading from bridge_credentials.
1 parent ccbdedd commit 2ceb0ee

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

extension-raw/pages/options/src/components/TuyaSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ export const TuyaSettings = ({ isDarkMode }: { isDarkMode: boolean }) => {
4141
chrome.storage.local.set({ tuya_config: config }, () => {
4242
// Also save Access ID to bridge credentials (username field stores Access ID)
4343
chrome.storage.local.set({
44-
cloudBridgeCredentials: {
44+
bridge_credentials: { // ← FIXED: Match the key that tuyaBridge loads!
4545
username: config.clientId, // Access ID
4646
password: config.clientSecret || '', // Name (optional)
4747
}
4848
}, () => {
49-
alert('✅ Tuya Access ID saved!\n\nNow go to "Tuya AI Bridge" section and click "Start Polling"');
49+
alert('✅ Tuya Access ID saved!\n\nReload the extension for changes to take effect.');
5050
});
5151
});
5252
};

0 commit comments

Comments
 (0)