Skip to content

Commit 7872e9f

Browse files
authored
feat: support enhanced custom domains (#1193)
* feat: enhance custom domains handling and tests * chore: update auth0 dependency version 4.36.0
1 parent 2a97ab1 commit 7872e9f

10 files changed

Lines changed: 3794 additions & 3441 deletions

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
3434
"dependencies": {
3535
"ajv": "^6.12.6",
36-
"auth0": "^4.35.0",
36+
"auth0": "^4.36.0",
3737
"dot-prop": "^5.3.0",
3838
"fs-extra": "^10.1.0",
3939
"js-yaml": "^4.1.0",

src/tools/auth0/handlers/customDomains.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CustomDomain } from 'auth0';
22
import DefaultAPIHandler, { order } from './default';
33
import { Asset, Assets } from '../../../types';
44
import log from '../../../logger';
5+
import { paginate } from '../client';
56

67
export const schema = {
78
type: 'array',
@@ -86,9 +87,11 @@ export default class CustomDomainsHadnler extends DefaultAPIHandler {
8687
return this.existing;
8788
}
8889

89-
const { data: customDomains } = await this.client.customDomains.getAll();
90+
const customDomains = await paginate<CustomDomain>(this.client.customDomains.getAll, {
91+
checkpoint: true,
92+
});
9093

91-
this.existing = customDomains as CustomDomain[];
94+
this.existing = customDomains;
9295

9396
return customDomains;
9497
} catch (err) {

0 commit comments

Comments
 (0)