UNPKG

sk-oidc-oauth

Version:

OIDC/OAuth2 authentication and authorization for prerendered/client-side-rendered SvelteKit apps.

42 lines (41 loc) 1.33 kB
import { SvelteComponent } from "svelte"; import type { UserManagerSettings } from '../../types'; declare const __propDef: { props: { userManagerSettings: UserManagerSettings; /** * Component to render while loading/authenticating. * * @example * ```svelte * <div * class="flex h-full min-h-[calc(100dvh-4rem)] w-full flex-col items-center justify-center px-4 pb-16" * > * <h1 class="mt-5 text-3xl md:text-5xl">Authenticating...</h1> * </div> * ``` */ loadingComponent?: typeof SvelteComponent<any, any, any> | null | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: { default: {}; }; }; export type AuthenticationProps = typeof __propDef.props; export type AuthenticationEvents = typeof __propDef.events; export type AuthenticationSlots = typeof __propDef.slots; /** * Authentication provider. This component is meant to be used as a wrapper around the application. * * @example * ```svelte * <Authentication userManagerSettings={...settings}> * <slot /> * </Authentication> * ``` */ export default class Authentication extends SvelteComponent<AuthenticationProps, AuthenticationEvents, AuthenticationSlots> { } export {};