supertokens-auth-react
Version:
ReactJS SDK that provides login functionality with SuperTokens.
17 lines (16 loc) • 547 B
TypeScript
import type { GetLoginMethodsResponseNormalized } from "./types";
import type { FC, PropsWithChildren } from "react";
export declare type DynamicLoginMethodsContextValue =
| {
loaded: false;
}
| {
loaded: true;
loginMethods: GetLoginMethodsResponseNormalized;
};
export declare const useDynamicLoginMethods: () => DynamicLoginMethodsContextValue;
export declare const DynamicLoginMethodsProvider: FC<
PropsWithChildren<{
value: GetLoginMethodsResponseNormalized | undefined;
}>
>;