Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate authing #771

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.4
v1.0.1
3 changes: 0 additions & 3 deletions Jenkinsfile

This file was deleted.

24 changes: 10 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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__",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default [
output: [
{
name,
file: 'dist/auth0-react.js',
file: 'dist/authing-react.js',
format: 'umd',
globals,
sourcemap: true,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/auth-state.tsx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/auth0-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/auth0-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
RedirectLoginResult,
GetTokenSilentlyOptions,
User,
} from '@auth0/auth0-spa-js';
} from '@hooppee/authing-spa-js';
import Auth0Context, {
Auth0ContextInterface,
LogoutOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export {
AuthenticationError,
MissingRefreshTokenError,
GenericError
} from '@auth0/auth0-spa-js';
} from '@hooppee/authing-spa-js';
export { OAuthError } from './errors';
2 changes: 1 addition & 1 deletion src/reducer.tsx
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion src/use-auth0.tsx
Original file line number Diff line number Diff line change
@@ -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';

/**
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
crossorigin
src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
></script>
<script src="auth0-react.js"></script>
<script src="authing-react.js"></script>
<script type="text/babel" data-presets="es2015,es2016,es2017,stage-3,react">
const { Auth0Provider, useAuth0 } = reactAuth0;
const { useState } = React;
Expand Down
Loading