Skip to content

Commit

Permalink
Update OAuth2 client
Browse files Browse the repository at this point in the history
The library "@isic/client" is being retired, in favor of directly using the
"@resonant/oauth-client" library which it depended on.
  • Loading branch information
brianhelba committed Feb 4, 2025
1 parent a5e996b commit fa4dc40
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 73 deletions.
132 changes: 63 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@babel/polyfill": "^7.12.1",
"@isic/client": "^0.6.2",
"@resonant/oauth-client": "^1.0.2",
"aws-sdk": "^2.910.0",
"axios": "^1.6.1",
"core-js": "^3.38.0",
Expand Down
6 changes: 3 additions & 3 deletions sources/services/auth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import IsicClient from "@isic/client";
import OauthClient from "@resonant/oauth-client";

import constants from "../constants";
import appliedFilters from "../models/appliedFilters";
Expand All @@ -14,9 +14,9 @@ import ajax from "./ajaxActions";

const ISIC_CLIENT_ID = process.env.ISIC_CLIENT_ID;
const AUTHORIZATION_SERVER = process.env.ISIC_AUTHORIZATION_SERVER;
const client = new IsicClient(
const client = new OauthClient(
new URL(`${AUTHORIZATION_SERVER}/oauth/`),
ISIC_CLIENT_ID,
AUTHORIZATION_SERVER
);

class OAuthISIC {
Expand Down

0 comments on commit fa4dc40

Please sign in to comment.