Skip to content

Conversation

@tkla
Copy link

@tkla tkla commented Aug 16, 2022

No description provided.

tkla added 30 commits May 31, 2022 17:58
…PI url to be stored as this.newUrl in EnvoyAPI

this.token = token;
this.baseUrl = process.env.ENVOY_BASE_URL || 'https://app.envoy.com';
this.newUrl = 'https://api.envoy.com/v1';
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably call this something more descriptive than newUrl, maybe baseApiUrl and add an env var for it. Also, we should probably remove the v1 on it so that it's just the api.envoy.com domain.

this.baseUrl = process.env.ENVOY_BASE_URL || 'https://app.envoy.com';
this.newUrl = 'https://api.envoy.com/v1';
// External OAuth login url
this.envoyAuthUrl = 'https://app.envoy.com/a/auth/v0/authorize?response_type=code';
Copy link
Contributor

Choose a reason for hiding this comment

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

How are we planning to use this? Currently integrations payloads include an integrations scoped JWT and a user scoped JWT for making calls so most integrations will not need to call auth directly.

Style note, a url constant should not have parameters on it. The ?response_type=code should be added in place when the url is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants