Rebrand to Waseel, swap Stripe for Areeba, add phone-ready auth and DB seed
- Rename app: Waseel (name, slug, scheme waseel://, com.waseel.app ids, splash) - Payments: replace Stripe with Areeba hosted checkout (create/verify API routes, lib/areeba.ts, WebBrowser-based payment flow) - Maps: migrate address autocomplete to Places API (New), drop legacy library - Web support: map stub for web (native maps are iOS/Android only) - Auth: keep email + Google OAuth; fix OAuth redirect for Expo Go - Add scripts/seed-db.mjs (schema + Lebanese driver seed) - Pin Expo SDK 51 compatible package versions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useOAuth } from "@clerk/clerk-expo";
|
||||
import { router } from "expo-router";
|
||||
import { useCallback } from "react";
|
||||
import { Image, Text, View } from "react-native";
|
||||
import { Image, Text, View, Alert } from "react-native";
|
||||
|
||||
import { icons } from "@/constants";
|
||||
import { googleOAuth } from "@/lib/auth";
|
||||
@@ -22,8 +22,12 @@ export const OAuth = ({ title }: OAuthProps) => {
|
||||
if (result?.code === "session_exists" || result?.code === "success") {
|
||||
router.replace("/(root)/(tabs)/home");
|
||||
}
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
console.error("OAuth error", err);
|
||||
Alert.alert(
|
||||
"Google sign-in failed",
|
||||
err?.errors?.[0]?.longMessage || err?.message || "Please try again.",
|
||||
);
|
||||
}
|
||||
}, [startOAuthFlow]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user