feat: add App Intents and device control widget
This commit is contained in:
43 files changed
+852
-1070
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user