@krak-stack/auth 0.1.62 → 0.1.64

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/README.md CHANGED
@@ -57,6 +57,24 @@ When components are configured, register their Tailwind source:
57
57
  @import "@krak-stack/auth/tailwind.css";
58
58
  ```
59
59
 
60
+ `createAuthUiClient` sends credentials by default so hosted KrakStack Auth UI can resolve sessions when embedded in consumer apps on a different origin. Pass `{ credentials: "omit" }` only for intentionally anonymous or custom clients.
61
+
62
+ `UserButton` accepts `menuActions` for app-owned menu items such as dashboard or workspace links:
63
+
64
+ ```tsx
65
+ import { UserButton } from "@krak-stack/auth";
66
+ import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
67
+
68
+ <UserButton
69
+ menuActions={
70
+ <DropdownMenuItem render={<a href="/dashboard" />}>
71
+ Dashboard
72
+ </DropdownMenuItem>
73
+ }
74
+ signOutRedirect="/"
75
+ />;
76
+ ```
77
+
60
78
  See [React components and CSS](https://auth.krakstack.net/en/docs/components) for the provider and component requirements.
61
79
 
62
80
  ## Authorization