join #19

Merged
amaliadwiy merged 222 commits from join into v1 2026-02-09 11:18:03 +08:00
130 changed files with 3458 additions and 920 deletions
Showing only changes of commit 171c5f0eeb - Show all commits

View File

@@ -22,8 +22,8 @@ import { useDispatch, useSelector } from "react-redux";
export default function Home() {
const entities = useSelector((state: any) => state.entities)
const dispatch = useDispatch()
const { token, decryptToken } = useAuthSession()
const insets = useSafeAreaInsets();
const { token, decryptToken, signOut } = useAuthSession()
const insets = useSafeAreaInsets()
useEffect(() => {
handleUserLogin()
@@ -31,7 +31,11 @@ export default function Home() {
async function handleUserLogin() {
const hasil = await decryptToken(String(token?.current))
apiGetProfile({ id: hasil }).then((data) => dispatch(setEntities(data.data)));
apiGetProfile({ id: hasil })
.then((data) => dispatch(setEntities(data.data)))
.catch((error) => {
signOut()
});
}
return (