mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 20:08:07 +08:00
Switch to JSON webtoken login format
This commit is contained in:
parent
4faf222b52
commit
11c4f0c264
9 changed files with 78 additions and 126 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue