Skip to content

Commit

Permalink
Update doc on Jest Girder oauth issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidshq committed Mar 31, 2023
1 parent 171f76b commit b27f836
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The @girder/oauth-client module is configured to error out if one tries to use it "insecurely" - which is what happens when we are using Jest. To fix this you'll need to go into `node_modules/@girder/oauth-client` and edit `src/oauth-client.ts` and `dist/oauth-client.js` and comment out the following lines:
The @girder/oauth-client module is configured to error out if one tries to use it "insecurely" - which is what happens when we are using Jest. To fix this you'll need to go into `node_modules/@girder/oauth-client` and edit `dist/oauth-client.js` and comment out the following lines:
```js
if (!window.isSecureContext) {
throw Error('OAuth Client cannot operate within insecure contexts.');
Expand Down

0 comments on commit b27f836

Please sign in to comment.