UNPKG

@asgardeo/react

Version:
58 lines (57 loc) 1.87 kB
/** * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { Context } from 'react'; /** * Props interface of {@link AsgardeoContext} */ export type AsgardeoContextProps = { /** * Flag indicating whether the SDK is working in the background. */ isLoading: boolean; /** * Flag indicating whether the user is signed in or not. */ isSignedIn: boolean; /** * Sign-in function to initiate the authentication process. * @remark This is the programmatic version of the `SignInButton` component. * TODO: Fix the types. */ signIn: any; /** * Sign-out function to terminate the authentication session. * @remark This is the programmatic version of the `SignOutButton` component. * FIXME: Fix the types. */ signOut: any; /** * Sign-up function to initiate the registration process. * @remark This is the programmatic version of the `SignUpButton` component. * FIXME: Fix the types. */ signUp: any; user: any; baseUrl: string; afterSignInUrl: string; }; /** * Context object for managing the Authentication flow builder core context. */ declare const AsgardeoContext: Context<AsgardeoContextProps | null>; export default AsgardeoContext;