Skip to content

Commit d0a8dea

Browse files
docs: add example of actual authenticated state in example app
1 parent 789a0ca commit d0a8dea

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

example/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,17 @@ subscribe(APP_READY, () => {
3333
}}>
3434
<Header />
3535
</AppContext.Provider>
36-
<h5 className="mt-2">Logged in state</h5>
36+
<h5 className="mt-2 mb-5">Logged in state</h5>
37+
38+
{/* We can also use the actual authenticated state */}
39+
<Header />
40+
<h5 className="mt-2">Actual state</h5>
41+
<p className="small">
42+
If you are authenticated, you will see the logged in state. Additionally, if
43+
you are an enterprise learner, you should see a custom logo and Dashboard links
44+
that direct you to localhost:8734 (<code>frontend-app-learner-portal-enterprise</code>). Otherwise,
45+
you will see the logged out state.
46+
</p>
3747
</AppProvider>,
3848
document.getElementById('root'),
3949
);

0 commit comments

Comments
 (0)