We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591e390 commit 9b6e656Copy full SHA for 9b6e656
src/keycloak.tsx
@@ -6,7 +6,6 @@ const keycloak = new Keycloak({
6
clientId: import.meta.env.VITE_KEYCLOAK_CLIENT_ID as string,
7
})
8
9
-// Initialize function that can be awaited by importing code
10
export const initKeycloak = async (): Promise<boolean> => {
11
try {
12
console.log("loading keycloak")
@@ -27,7 +26,6 @@ export const initKeycloak = async (): Promise<boolean> => {
27
26
28
return authenticated
29
} catch (error: unknown) {
30
- // Properly type the error and safely log it
31
console.error("Failed to initialize adapter:", error instanceof Error ? error.message : String(error))
32
return false
33
}
0 commit comments