diff --git a/.version b/.version index 15274788..6a2b0ac4 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.2.4 \ No newline at end of file +v1.0.1 \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index ff0e65b9..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,3 +0,0 @@ -@Library('k8sAgents') agentLibrary -@Library('auth0') _ -SDKDeployment() diff --git a/package.json b/package.json index 31b4a725..4eda303b 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "author": "Auth0", - "name": "@auth0/auth0-react", - "version": "2.2.4", - "description": "Auth0 SDK for React Single Page Applications (SPA)", + "author": "hooppee", + "name": "@hooppee/authing-react", + "version": "1.0.1", + "description": "Unofficial Authing SDK for React Single Page Applications (SPA)", "keywords": [ - "auth0", + "authing", "login", "Authorization Code Grant Flow", "PKCE", @@ -13,12 +13,11 @@ "react" ], "files": [ - "src", "dist" ], - "main": "dist/auth0-react.cjs.js", + "main": "dist/authing-react.cjs.js", "types": "dist/index.d.ts", - "module": "dist/auth0-react.esm.js", + "module": "dist/authing-react.esm.js", "scripts": { "build": "npm run lint && rollup -c --environment NODE_ENV:production", "lint": "eslint --ext=tsx ./src ./__tests__", @@ -43,13 +42,10 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/auth0/auth0-react.git" + "url": "git+https://github.com/hooppee/auth0-react.git" }, "license": "MIT", - "bugs": { - "url": "https://github.com/auth0/auth0-react/issues" - }, - "homepage": "https://github.com/auth0/auth0-react#readme", + "homepage": "https://github.com/hooppee/auth0-react#readme", "devDependencies": { "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-replace": "^5.0.1", @@ -96,6 +92,6 @@ "react-dom": "^16.11.0 || ^17 || ^18" }, "dependencies": { - "@auth0/auth0-spa-js": "^2.1.3" + "@hooppee/authing-spa-js": "^1.0.2" } } diff --git a/rollup.config.mjs b/rollup.config.mjs index 8fa25d72..80d85598 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -32,7 +32,7 @@ export default [ output: [ { name, - file: 'dist/auth0-react.js', + file: 'dist/authing-react.js', format: 'umd', globals, sourcemap: true, @@ -61,7 +61,7 @@ export default [ output: [ { name, - file: 'dist/auth0-react.min.js', + file: 'dist/authing-react.min.js', format: 'umd', globals, sourcemap: true, diff --git a/src/auth-state.tsx b/src/auth-state.tsx index df4bb543..bc9af040 100644 --- a/src/auth-state.tsx +++ b/src/auth-state.tsx @@ -1,4 +1,4 @@ -import { User } from '@auth0/auth0-spa-js'; +import { User } from '@hooppee/authing-spa-js'; /** * The auth state which, when combined with the auth methods, make up the return object of the `useAuth0` hook. diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx index d2960ab9..a8784af9 100644 --- a/src/auth0-context.tsx +++ b/src/auth0-context.tsx @@ -9,7 +9,7 @@ import { User, GetTokenSilentlyVerboseResponse, RedirectLoginOptions as SPARedirectLoginOptions, -} from '@auth0/auth0-spa-js'; +} from '@hooppee/authing-spa-js'; import { createContext } from 'react'; import { AuthState, initialAuthState } from './auth-state'; import { AppState } from './auth0-provider'; diff --git a/src/auth0-provider.tsx b/src/auth0-provider.tsx index bfa1af30..7135dc79 100644 --- a/src/auth0-provider.tsx +++ b/src/auth0-provider.tsx @@ -15,7 +15,7 @@ import { RedirectLoginResult, GetTokenSilentlyOptions, User, -} from '@auth0/auth0-spa-js'; +} from '@hooppee/authing-spa-js'; import Auth0Context, { Auth0ContextInterface, LogoutOptions, diff --git a/src/index.tsx b/src/index.tsx index 3b860ff1..c7ba7698 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -37,5 +37,5 @@ export { AuthenticationError, MissingRefreshTokenError, GenericError -} from '@auth0/auth0-spa-js'; +} from '@hooppee/authing-spa-js'; export { OAuthError } from './errors'; diff --git a/src/reducer.tsx b/src/reducer.tsx index a8fc79fe..c1c8526a 100644 --- a/src/reducer.tsx +++ b/src/reducer.tsx @@ -1,4 +1,4 @@ -import { User } from '@auth0/auth0-spa-js'; +import { User } from '@hooppee/authing-spa-js'; import { AuthState } from './auth-state'; type Action = diff --git a/src/use-auth0.tsx b/src/use-auth0.tsx index 8bc03eae..fb046345 100644 --- a/src/use-auth0.tsx +++ b/src/use-auth0.tsx @@ -1,5 +1,5 @@ import { useContext } from 'react'; -import { User } from '@auth0/auth0-spa-js'; +import { User } from '@hooppee/authing-spa-js'; import Auth0Context, { Auth0ContextInterface } from './auth0-context'; /** diff --git a/static/index.html b/static/index.html index f344a69d..258304bc 100644 --- a/static/index.html +++ b/static/index.html @@ -21,7 +21,7 @@ crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" > - +