Switch to JSON webtoken login format

This commit is contained in:
Keannu Christian Bernasol 2023-07-03 23:19:36 +08:00
parent 4faf222b52
commit 11c4f0c264
9 changed files with 78 additions and 126 deletions

View file

@ -3,6 +3,10 @@ import styles from "../../styles";
import { View, Text } from "react-native";
import { useSelector } from "react-redux";
import { RootState } from "../../features/redux/Store/Store";
import Button from "../../components/Button/Button";
import { UserLogin } from "../../components/Api/Api";
import { colors } from "../../styles";
import axios from "axios";
export default function Home() {
const creds = useSelector((state: RootState) => state.auth.creds);
@ -10,7 +14,6 @@ export default function Home() {
<View style={styles.background}>
<Text style={styles.text_white_large}>Template Homepage</Text>
<Text style={styles.text_white_tiny}>{JSON.stringify(creds)}</Text>
<Text style={styles.text_white_tiny}>Token: {creds.token}</Text>
</View>
);
}