sk-oidc-oauth
Version:
OIDC/OAuth2 authentication and authorization for prerendered/client-side-rendered SvelteKit apps.
21 lines (20 loc) • 975 B
TypeScript
/// <reference types="svelte" />
import type { ToastStore } from '@skeletonlabs/skeleton';
import { type ClassNameValue } from 'tailwind-merge';
export declare const cn: (...inputs: ClassNameValue[]) => string;
/**
* Checks if the current path matches the path to match.
* @param currentPath the current path of the app
* @param pathToMatch the path to match
* @returns boolean
*/
export declare const doesPathMatch: (currentPath: string, pathToMatch: string) => boolean;
export declare const getInitials: (name: string | null | undefined) => string;
export declare const isMinWidthSm: () => import("svelte/store").Readable<boolean>;
/**
* Shows an error toast.
* @param toastStore - the {@link https://www.skeleton.dev/utilities/toasts#toast-store | skeleton toast store}
* @param message - the message to show
*/
export declare const errorToast: (toastStore: ToastStore, message: string) => void;
export declare const doubleThem: (a: number, b: number) => number;