UNPKG

@propelauth/react

Version:

A React library for managing authentication, backed by PropelAuth

17 lines (16 loc) 700 B
import { AccessTokenForActiveOrg, OrgMemberInfo, User } from "@propelauth/javascript"; import React from "react"; export declare type UserInformationForTesting = { user: User; orgMemberInfos: OrgMemberInfo[]; accessToken?: string; getAccessTokenForOrg?: (orgId: string) => Promise<AccessTokenForActiveOrg>; }; export declare type AuthProviderForTestingProps = { loading?: boolean; userInformation?: UserInformationForTesting; activeOrgFn?: () => string | null; authUrl?: string; children?: React.ReactNode; }; export declare const AuthProviderForTesting: ({ loading, userInformation, activeOrgFn, authUrl, children, }: AuthProviderForTestingProps) => JSX.Element;