@checkstack/auth-frontend 0.0.3 → 0.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @checkstack/auth-frontend
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f5b1f49: Improved BASE_URL handling with fallback defaults for local development.
8
+ - Updated dependencies [f5b1f49]
9
+ - Updated dependencies [f5b1f49]
10
+ - @checkstack/common@0.0.3
11
+ - @checkstack/ui@0.0.4
12
+ - @checkstack/auth-common@0.0.3
13
+ - @checkstack/frontend-api@0.0.3
14
+
3
15
  ## 0.0.3
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/auth-frontend",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "exports": {
package/src/index.tsx CHANGED
@@ -24,10 +24,7 @@ import { getAuthClientLazy } from "./lib/auth-client";
24
24
 
25
25
  import { usePermissions } from "./hooks/usePermissions";
26
26
 
27
- import {
28
- PermissionAction,
29
- qualifyPermissionId,
30
- } from "@checkstack/common";
27
+ import { PermissionAction, qualifyPermissionId } from "@checkstack/common";
31
28
  import { useNavigate } from "react-router-dom";
32
29
  import { Settings2, Key } from "lucide-react";
33
30
  import { DropdownMenuItem } from "@checkstack/ui";
@@ -125,7 +122,7 @@ class BetterAuthApi implements AuthApi {
125
122
 
126
123
  async signInWithSocial(provider: string) {
127
124
  // Use current origin as callback URL (works in dev and production)
128
- const frontendUrl = globalThis.location?.origin || "http://localhost:5173";
125
+ const frontendUrl = globalThis.location?.origin;
129
126
  await getAuthClientLazy().signIn.social({
130
127
  provider,
131
128
  callbackURL: frontendUrl,