Skip to content

Commit

Permalink
fix: top level await
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Feb 2, 2024
1 parent 008cdca commit 1144ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from "react";
import { createAppOidc } from "../functions/oidc.ts";

const { OidcProvider, useOidc } = await createAppOidc();
const { OidcProvider, useOidc } = createAppOidc();

export const useHasRole = (role: string): boolean => {
const { oidcTokens } = useOidc({ assertUserLoggedIn: true });
Expand Down

0 comments on commit 1144ada

Please sign in to comment.