@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 +12 -0
- package/package.json +1 -1
- package/src/index.tsx +2 -5
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
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
|
|
125
|
+
const frontendUrl = globalThis.location?.origin;
|
|
129
126
|
await getAuthClientLazy().signIn.social({
|
|
130
127
|
provider,
|
|
131
128
|
callbackURL: frontendUrl,
|