diff --git a/package.json b/package.json index 91fc6d6..a1806a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@event-inc/link", - "version": "1.0.15", + "version": "1.0.16", "description": "A React hook wrapper for Event Link.", "files": [ "dist", diff --git a/src/index.ts b/src/index.ts index e7e727a..0e07e16 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export { useOauthDestination } from './useOauthDestination'; +export { useOauth } from './useOauth'; export { useSourceEventLink as useSource } from './useSourceEventLink'; export { useDestinationEventLink as useDestination } from './useDestinationEventLink'; \ No newline at end of file diff --git a/src/useOauthDestination.ts b/src/useOauth.ts similarity index 95% rename from src/useOauthDestination.ts rename to src/useOauth.ts index 5c4daae..cd25614 100644 --- a/src/useOauthDestination.ts +++ b/src/useOauth.ts @@ -14,7 +14,7 @@ class OauthDestination { } } -export const useOauthDestination = ( +export const useOauth = ( props: OauthDestinationProps ) => { const { type, state, redirectUri, scopes, clientId } = props;