diff --git a/README.md b/README.md index 5b72858..40ec10c 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ in `.env.local` file to make the environment variable accessible on `process.env Example App: ```jsx +//index.js + import React from "react"; import ReactDOM from "react-dom/client"; import App from "./App"; @@ -50,19 +52,24 @@ import { EasyauthProvider } from "@easyauth.io/easyauth-react"; const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + ); +//User can also pass authority,clientId,redirectUri explicitly as a prop in EasauthProvider component +//for ex. + // + // + //App.js -import { useEasyauth } from "@easyauth.io/easyauth-react"; +import { useEasyauth, UserProfile } from "@easyauth.io/easyauth-react"; function App() { const auth = useEasyauth(); @@ -86,7 +93,7 @@ function App() {

Hello {auth.user?.profile.sub}

- +