Caravela.Gen.AuthSvelte (Caravela v0.13.1)

Copy Markdown View Source

Generates typed Svelte components for the authentication UI from a domain whose authenticatable entity declares an authenticatable block.

Emits, under assets/svelte/[v<N>/]auth/:

  • LoginForm.svelte
  • RegisterForm.svelte — fields dynamically derived from the authenticatable entity (every required public field + password)
  • ResetPasswordForm.svelte — two-phase (request / confirm)
  • ConfirmEmail.svelte — status page for /auth/confirm/:token
  • TokenManager.svelte — only when the :api_token strategy is enabled
  • SessionList.svelte

Returns a list of {path, source} tuples. Files preserve content below the <!-- --- CUSTOM --- --> marker on regeneration.

Summary

Functions

Render every auth Svelte component relevant to the domain.

Functions

render_all(domain, opts \\ [])

Render every auth Svelte component relevant to the domain.