upd: login

Deskripsi:
- login token
- logout

No Issues
This commit is contained in:
amel
2025-04-09 17:45:51 +08:00
parent 654dc4e340
commit 823b892a7c
9 changed files with 12731 additions and 13 deletions

View File

@@ -3,11 +3,14 @@ import ButtonBackHeader from "@/components/buttonBackHeader";
import { ButtonHeader } from "@/components/buttonHeader";
import ItemDetailMember from "@/components/itemDetailMember";
import Styles from "@/constants/Styles";
import { useAuthSession } from "@/providers/AuthProvider";
import { Octicons } from "@expo/vector-icons";
import { router, Stack } from "expo-router";
import { Image, SafeAreaView, ScrollView, Text, View } from "react-native";
export default function Profile() {
const {signOut, token} = useAuthSession()
return (
<SafeAreaView>
<Stack.Screen
@@ -22,7 +25,8 @@ export default function Profile() {
AlertKonfirmasi({
title: 'Keluar',
desc: 'Apakah anda yakin ingin keluar?',
onPress: () => { router.push('/') }
// onPress: () => { router.push('/') }
onPress: () => { signOut()}
})
}}
/>