Update shared web UI auth and profile menu
This commit is contained in:
1 parent
e3544617e1
commit
d0b18a4902
5 files changed
+189
-20
No files matched your search
@@ -196,11 +196,14 @@ The Node and Python packages intentionally expose the same infrastructure concep
|
||||
/>
|
||||
```
|
||||
|
||||
The shared profile menu exposes Profile, Settings, About, and Log out. It uses the `About` navigation item's href automatically; pass `aboutHref` or `onAbout` to `AppShell` when a project uses a custom About destination or dialog.
|
||||
|
||||
For authentication, use the same shell with `AuthPage` and connect the callbacks to the application's existing auth service:
|
||||
|
||||
```svelte
|
||||
<AuthPage
|
||||
brand="My application"
|
||||
faviconHref="/favicon.svg"
|
||||
onLogin={(credentials) => auth.login(credentials.identifier, credentials.password)}
|
||||
onSetup={(credentials) => auth.setup(credentials)}
|
||||
onRequestReset={() => auth.requestAdminReset()}
|
||||
|
||||
Reference in new issue
Block a user