@viibestack/ui 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/auth.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viibestack/ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Dependency-free React UI kit -- icons, core components (Button, Card, Input, Modal, etc.), gamification primitives (PointsDisplay, StreakCounter, Achievements, Leaderboard, fireReward), a real per-app data client (listRows/upsertRow/deleteRow/captureClientError), a real per-app end-user auth client (signUp/logIn/logOut/getCurrentUser/reportError), and a self-gating PoweredByBadge component -- backed by ViibeStack's own platform-managed data store.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
package/src/auth.ts
CHANGED
|
@@ -245,7 +245,11 @@ export async function confirmPasswordReset(token: string, newPassword: string):
|
|
|
245
245
|
// const [url, setUrl] = useState<string | null>(null);
|
|
246
246
|
// useEffect(() => { googleSignInUrl().then(setUrl); }, []);
|
|
247
247
|
// {url && <a href={url}>Sign in with Google</a>}
|
|
248
|
-
|
|
248
|
+
// BUG FIX (2026-07-21): must match services/auth's GOOGLE_APP_REDIRECT_URI
|
|
249
|
+
// host -- the app-start endpoint's oauth_state cookie has to be present
|
|
250
|
+
// when Google's callback lands back on that exact origin, or Google login
|
|
251
|
+
// silently fails with "invalid_state" for every deployed app using it.
|
|
252
|
+
const AUTH_URL = "https://auth.viibestack.ai";
|
|
249
253
|
|
|
250
254
|
export async function googleSignInUrl(): Promise<string | null> {
|
|
251
255
|
const appId = await resolveAppId();
|