Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

[WIP DON'T MERGE] Setting custom error agents #146

Closed
wants to merge 4 commits into from

Conversation

robertjd
Copy link
Contributor

Depends on okta/okta-auth-js#98

Shows how I'm thinking of handing this in React, Angular. Will look at vue next

const auth = new Auth({
issuer: 'https://foo/oauth2/default'
});
const expectedUserAgent = `${pkg.name}/${pkg.version} okta-auth-js-`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this pickup the okta-auth-js version too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To assert that, you need to know which version is currently depended on. Ideas I had that I didn't love:

  • Lock package.json down to a specific patch version
  • Fish into node modules to see what's currently installed.
  • Use a regex in the matcher, to at least assert the whole thing looks like what we expect

@robertjd robertjd force-pushed the rd-wip-user-agents branch from 51e62e9 to b4312aa Compare March 16, 2018 03:41
@robertjd robertjd force-pushed the rd-wip-user-agents branch from b4312aa to 7679c8e Compare March 16, 2018 22:00
@robertjd
Copy link
Contributor Author

Closing WIP PR in favor of #151

@robertjd robertjd closed this Mar 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants