Skip to content

Commit 2b6497c

Browse files
committed
Fix demo app not working with cookies session
1 parent 8eb1cd1 commit 2b6497c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/reactweb/src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ function Root() {
562562
After that, click one of the following buttons to try different
563563
features.
564564
</p>
565-
{sessionState === SessionState.Authenticated ? (
565+
{sessionState === SessionState.Authenticated ||
566+
(sessionType === "cookie" && userInfo != null) ? (
566567
<div className="button-group">
567568
<button
568569
className="button"
@@ -681,7 +682,8 @@ function Root() {
681682
</button>
682683
</div>
683684
)}
684-
{sessionState === SessionState.Authenticated && userInfo != null ? (
685+
{(sessionState === SessionState.Authenticated && userInfo != null) ||
686+
(sessionType === "cookie" && userInfo != null) ? (
685687
<pre>{JSON.stringify(userInfo.raw, null, 2)}</pre>
686688
) : null}
687689
<ShowError error={error} />

0 commit comments

Comments
 (0)