feat: add App Intents and device control widget

This commit is contained in:
joshuafhiggins committed 2026-10-22 18:37:28 -04:00 Verified
1 parent 6c3a474bb0
commit f57e7c19f0
43 files changed
+852 -1070

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import React, { createContext, useContext, useState, useEffect, useCallback } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
import api from '../services/api';
import { syncDevicesToWidget } from '../services/widgetSync';
import { AuthResponse, User } from '../types';
interface AuthContextType {
@@ -103,6 +104,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children
const logout = async () => {
try {
await clearSession();
syncDevicesToWidget([]);
} catch (error) {
console.error('Failed to logout', error);
}