Polished revalidation and login. Opted to not store tokens anymore in state but only in asyncstorage

This commit is contained in:
Keannu Christian Bernasol 2023-07-04 16:41:29 +08:00
parent 92b8ce0e4e
commit a027115836
5 changed files with 14 additions and 20 deletions

View file

@ -1,7 +1,11 @@
import * as React from "react";
import styles from "../../styles";
import { View, Text, ActivityIndicator } from "react-native";
import { TokenRefresh, UserInfo } from "../../components/Api/Api";
import {
TokenRefresh,
UserInfo,
setAccessToken,
} from "../../components/Api/Api";
import { useDispatch } from "react-redux";
import { colors } from "../../styles";
import { useEffect, useState } from "react";