Skip to content

Commit e4771d7

Browse files
authored
feat: add zoom as a supported provider type in Auth module (#640)
- Add 'zoom' to Provider type in auth.ts - Add test to verify zoom provider support - Update CHANGELOG.md with unreleased changes
1 parent 9265bbf commit e4771d7

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Changelog
22

33
### Unreleased
4-
* Fix: Add missing `/cancel` suffix in Notetaker API endpoint
4+
* Add support for 'zoom' as a provider type in Auth module
5+
* Fixed Add missing `/cancel` suffix in Notetaker API endpoint
6+
57

68
### 7.9.0 / 2025-04-30
79
* Add support for Notetaker API endpoints

src/models/auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export type Provider =
1212
| 'microsoft'
1313
| 'icloud'
1414
| 'virtual-calendar'
15-
| 'ews';
15+
| 'ews'
16+
| 'zoom';
1617

1718
/**
1819
* Configuration for generating a URL for OAuth 2.0 authentication.

tests/resources/auth.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@ describe('Auth', () => {
188188
);
189189
});
190190

191+
it('should support zoom as a provider', () => {
192+
const url = auth.urlForOAuth2({
193+
clientId: 'clientId',
194+
redirectUri: 'https://redirect.uri/path',
195+
scope: ['calendar'],
196+
provider: 'zoom',
197+
includeGrantScopes: true,
198+
});
199+
200+
expect(url).toBe(
201+
'https://test.api.nylas.com/v3/connect/auth?client_id=clientId&redirect_uri=https%3A%2F%2Fredirect.uri%2Fpath&access_type=online&response_type=code&provider=zoom&include_grant_scopes=true&scope=calendar'
202+
);
203+
});
204+
191205
it('should build the correct url if all the fields are set', () => {
192206
const url = auth.urlForOAuth2({
193207
clientId: 'clientId',

0 commit comments

Comments
 (0)