Skip to content

Commit

Permalink
Render callback handler client only (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lee authored Jan 17, 2025
1 parent aff5d0c commit 7a48929
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/zudoku/src/lib/authentication/providers/openid.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logger from "loglevel";
import * as oauth from "oauth4webapi";
import { OpenIDAuthenticationConfig } from "../../../config/config.js";
import { ClientOnly } from "../../components/ClientOnly.js";
import {
AuthenticationProvider,
AuthenticationProviderInitializer,
Expand Down Expand Up @@ -32,7 +33,11 @@ class OpenIdAuthPlugin extends AuthenticationPlugin {
...super.getRoutes(),
{
path: this.callbackUrlPath,
element: <CallbackHandler handleCallback={this.handleCallback} />,
element: (
<ClientOnly>
<CallbackHandler handleCallback={this.handleCallback} />
</ClientOnly>
),
},
];
}
Expand Down

0 comments on commit 7a48929

Please sign in to comment.