0.1.4 • Published 7 months ago
authease v0.1.4
Auth Ease
AuthEase: Make Authentication with Ease.
Usage
To start using the library, install it in your project
npm i authease
To use the library, follow the steps as below:
import {AuthEasyProvider,LoginPage,SignedIn,SignedOut} from 'authease';
import "authease/dist/styles/index.css"; // style sheet of login page and sign up page.
function App() {
return (
<AuthEasyProvider>
<SignedIn>
<Welcome/> // custom component
</SignedIn>
<SignedOut>
<LoginPage/>
</SignedOut>
</AuthEasyProvider>
);
}
export default App;
function Welcome(){
return <h1 className='text-4xl text-red-700 text-center'>Welcome to home!</h1>
}
You are good to go to start your work now. Your Auth is ready to use.