-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react): move from jsonwebtoken to jose
This removes the reliance on node built in modules as they don't work in a browser context without polyfilling.
- Loading branch information
Showing
4 changed files
with
22 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@labdigital/federated-token-react": minor | ||
--- | ||
|
||
Replace jsonwebtoken with jose as jsonwebtoken relies on built-in node modules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,11 @@ | |
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"keywords": ["graphql", "authentication", "react"], | ||
"keywords": [ | ||
"graphql", | ||
"authentication", | ||
"react" | ||
], | ||
"author": "Lab Digital <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
|
@@ -29,15 +33,17 @@ | |
"test:ci": "vitest run --coverage", | ||
"tsc": "tsc --noEmit" | ||
}, | ||
"files": ["dist", "src"], | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"dependencies": { | ||
"js-cookie": "3.0.5", | ||
"jsonwebtoken": "9.0.2" | ||
"jose": "5.4.0", | ||
"js-cookie": "3.0.5" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.17.21", | ||
"@types/js-cookie": "3.0.6", | ||
"@types/jsonwebtoken": "9.0.6", | ||
"@types/react": "18.3.3", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"node-mocks-http": "^1.16.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.