Skip to content

Commit

Permalink
chore: change type name
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Sep 18, 2024
1 parent b7a0e80 commit b90fb1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useOAuth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type hydraBEApps = {
enabled_for: number[];
};

type OAuth2Config = {
type OAuth2GBConfig = {
OAuth2EnabledApps: hydraBEApps[];
OAuth2EnabledAppsInitialised: boolean;
};
Expand All @@ -23,7 +23,7 @@ type OAuth2Config = {
* @param {(oauthUrl: string) => Promise<void>} WSLogoutAndRedirect - Function to handle logout and redirection.
* @returns {{ OAuth2Logout: () => Promise<void> }} - Object containing the OAuth2Logout function.
*/
export const useOAuth2 = (OAuth2GrowthBookConfig: OAuth2Config, WSLogoutAndRedirect: () => Promise<void>) => {
export const useOAuth2 = (OAuth2GrowthBookConfig: OAuth2GBConfig, WSLogoutAndRedirect: () => Promise<void>) => {
const { OAuth2EnabledApps, OAuth2EnabledAppsInitialised } = OAuth2GrowthBookConfig;
const isOAuth2Enabled = useIsOAuth2Enabled(OAuth2EnabledApps, OAuth2EnabledAppsInitialised);

Expand Down

0 comments on commit b90fb1c

Please sign in to comment.