/**
* @license
* Copyright Stbui All Rights Reserved.
* https://github.com/stbui/prophet
*/
import { useState, useEffect } from 'react';
import useCheckAuth from './useCheckAuth';
interface AuthState {
loading: boolean;
loaded: boolean;
authenticated?: boolean;
}
/**
*
* @param params
*
* @example
*
* import { useAuthState } from '@stbui/prophet-core';
*
*
* const MyApp = () => {
* const { loading, authenticated } = useAuthState();
* if (loading) {
* return