Skip to content
Svartz v2.6.0

@svartz/auth/browser

5 exported symbols.

Interfaces

i SignInConfigWhat the dialog needs from the vault's `auth` config.
i SignInProvider

Functions

f mountBrowser script entry: remember the vault's config, open the dialog from `data-svartz-sign-in` elements, and link a signed-in reader to their account and the dashboard. The build doesn't know a host app's `paths.base`, so the routes get the deployment base here, from `context`.
f openSignInOpen the sign-in dialog. Each provider starts sign-in and comes back to `returnTo`, by default this page. Throws until the `auth` plugin's script has mounted, which happens on every page of a vault that enables it.
f reputationBadgeAn account's reputation as a badge to follow its name, as `reputationBadgeHtml` renders it on the server.