upd: clear warning

Deskripsi:
- update firebase > clear warning

No Issues
This commit is contained in:
2025-08-08 11:26:09 +08:00
parent 7555ece0fa
commit 602860d9c3
4 changed files with 27 additions and 31 deletions

View File

@@ -56,6 +56,7 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
const permission = await requestPermission()
if (permission) {
try {
// COMING SOON
if (Platform.OS === 'android') {
const tokenDevice = await getToken()
const register = await apiRegisteredToken({ user: hasil, token: String(tokenDevice) })
@@ -78,8 +79,9 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
const signOut = useCallback(async () => {
try {
const hasil = await decryptToken(String(tokenRef.current))
const token = await getToken()
// COMING SOON
if (Platform.OS === 'android') {
const token = await getToken()
const response = await apiUnregisteredToken({ user: hasil, token: String(token) })
}
} catch (error) {