UNPKG

membros-react-sdk

Version:

React authentication library for Membros platform with subscription management and plan-based access control

10 lines 469 B
import React from "react"; import { AuthButtonProps } from "./types"; export declare const useAuthButton: (onAuthSuccess?: (accessToken: string) => void, redirectMode?: "popup" | "redirect") => { handleLogin: (useToast?: any) => void; fetchToken: (authorizationCode: string, useToast?: any) => Promise<void>; }; export declare const MembrosAuthButton: React.FC<Omit<AuthButtonProps, 'apiKey'> & { useToast?: any; }>; //# sourceMappingURL=AuthButton.d.ts.map