mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Fix TypeScript null check for feature.oidc in callback page
This commit is contained in:
@@ -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`, {
|
||||
|
||||
Reference in New Issue
Block a user