@krak-stack/auth 0.1.62 → 0.1.63
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 +16 -0
- package/dist/api.d.ts +366 -366
- package/dist/components/auth-client-api.d.ts +185 -185
- package/dist/components/auth-forms.js +48 -37
- package/dist/components/index.d.ts +1 -1
- package/dist/components/user-button.d.ts +3 -2
- package/dist/components/user-button.js +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,22 @@ When components are configured, register their Tailwind source:
|
|
|
57
57
|
@import "@krak-stack/auth/tailwind.css";
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
`UserButton` accepts `menuActions` for app-owned menu items such as dashboard or workspace links:
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
import { UserButton } from "@krak-stack/auth";
|
|
64
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
65
|
+
|
|
66
|
+
<UserButton
|
|
67
|
+
menuActions={
|
|
68
|
+
<DropdownMenuItem render={<a href="/dashboard" />}>
|
|
69
|
+
Dashboard
|
|
70
|
+
</DropdownMenuItem>
|
|
71
|
+
}
|
|
72
|
+
signOutRedirect="/"
|
|
73
|
+
/>;
|
|
74
|
+
```
|
|
75
|
+
|
|
60
76
|
See [React components and CSS](https://auth.krakstack.net/en/docs/components) for the provider and component requirements.
|
|
61
77
|
|
|
62
78
|
## Authorization
|