Fix TypeScript null check for feature.oidc in callback page

This commit is contained in:
2026-02-24 02:03:26 -08:00
parent 5c6f0f470d
commit a24014bb8a
+5 -1
View File
@@ -43,7 +43,11 @@ const OidcCallback: NextPage = () => {
const exchangeCode = async() => {
try {
const { serverUrl, clientId } = feature.oidc;
const oidc = feature.oidc;
if (!oidc) {
return;
}
const { serverUrl, clientId } = oidc;
const redirectUri = `${ window.location.origin }/auth/callback`;
const tokenResponse = await fetch(`${ serverUrl }/oauth/token`, {