Merge branch 'feature_redux' of https://git.zeptic.in/abintoppo_lincpay/CircleCollect into feature_profile
This commit is contained in:
@@ -54,6 +54,8 @@ export default function LoginScreen() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(LOGIN_URL + mobile);
|
const res = await axios.get(LOGIN_URL + mobile);
|
||||||
|
console.log("OTP sent response:", res)
|
||||||
|
|
||||||
if (res.data.statusCode === 200) {
|
if (res.data.statusCode === 200) {
|
||||||
navigation.navigate("OtpVarify", { mobile });
|
navigation.navigate("OtpVarify", { mobile });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const SplashScreen = () => {
|
|||||||
try {
|
try {
|
||||||
const credentials = await Keychain.getGenericPassword();
|
const credentials = await Keychain.getGenericPassword();
|
||||||
if (!credentials) {
|
if (!credentials) {
|
||||||
Alert.alert("Error", "You are not logged in");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const token = credentials.password;
|
const token = credentials.password;
|
||||||
|
|||||||
Reference in New Issue
Block a user