mirror of
https://github.com/janishutz/oidc-login-sdk.git
synced 2026-10-08 17:36:20 +02:00
chore: fix typescript errors
This commit is contained in:
1 parent
9652003018
commit
ea67e6984a
3 files changed
+6
-4
No files matched your search
+4
-1
@@ -22,7 +22,10 @@ export const check = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !status && config.get().checkAutoRedirect ) {
|
if ( !status && config.get().checkAutoRedirect ) {
|
||||||
location.href = getRedirect();
|
const redir = getRedirect();
|
||||||
|
|
||||||
|
if ( redir )
|
||||||
|
location.href = redir;
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ const wrapper = async ( url: string, opts: RequestInit, authErrorResolution?: Au
|
|||||||
} else {
|
} else {
|
||||||
throw new AuthError( 'ERR_USER_UNAUTHORIZED' );
|
throw new AuthError( 'ERR_USER_UNAUTHORIZED' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return res;
|
||||||
} else {
|
} else {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"types": [
|
|
||||||
"node"
|
|
||||||
],
|
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext"
|
"moduleResolution": "NodeNext"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user