Documentation
¶
Index ¶
- func AuthProvider() gowdkauth.Provider
- func LoadDashboard(ctx ssr.LoadContext) (map[string]any, error)
- func Login(_ context.Context, values form.Values) (response.Response, error)
- func Logout(context.Context, form.Values) (response.Response, error)
- func RequireSession(ctx guard.Context) error
- func Sessions() (*gowdkauth.Sessions, error)
- type DashboardData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthProvider ¶
AuthProvider returns a Provider that resolves the session manager lazily on the first request. The generated app registers the provider from its init() hook, which runs before the app's env-contract validation. Building Sessions here (as the previous MustAuthProvider did) would panic on a missing or too-short GOWDK_AUTH_SESSION_SECRET and crash with a stack trace instead of the clean startup error. Deferring construction to Principal keeps secret misconfiguration on the normal validation path.
func LoadDashboard ¶
func LoadDashboard(ctx ssr.LoadContext) (map[string]any, error)
func RequireSession ¶
Types ¶
type DashboardData ¶
Click to show internal directories.
Click to hide internal directories.