Skip to content

Commit 7e196a7

Browse files
committed
feat!: removed default defaultMaxAge from all built-in claims
1 parent 76fca4e commit 7e196a7

File tree

11 files changed

+15
-42
lines changed

11 files changed

+15
-42
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Added register credential endpoint for the WebAuthn recipe
1111

12-
## [23.0.0] - 2025-06-27
12+
## [23.0.0] - 2025-07-21
13+
14+
### Breaking changes
1315

1416
- The `getConsentRequest`, `acceptConsentRequest`, `rejectConsentRequest`, `acceptLoginRequest`, `rejectLoginRequest` and `introspectToken` can now possibly return an `ErrorOAuth2`.
1517
- The `/oauth/introspect` can now possibly return an `ErrorAuth2`.
16-
- The `User` class now has a `fromApi` function to normalize the user object returned from the API.
18+
- Removed default defaultMaxAge from all built-in claims/validators. You can optionally set them when adding the validators. This should help with unexpected API calls during session verification.
19+
20+
### Refactors
21+
1722
- Refactors querier to use dynamic request body and response body types inference.
1823
- Refactor internal network calls made with querier to use the new dynamic types.
24+
- The `User` class now has a `fromApi` function to normalize the user object returned from the API.
1925
- Added experimental support for plugins. Please note that the experimental nature of this feature means that we might break the interface in non-major version updates.
2026

2127
## [22.1.1] - 2025-06-20
@@ -972,7 +978,7 @@ Session.init({
972978
input.userId,
973979
input.recipeUserId,
974980
input.tenantId,
975-
input.userContext,
981+
input.userContext
976982
)),
977983
};
978984

@@ -1000,7 +1006,7 @@ Session.init({
10001006
input.recipeUserId,
10011007
input.tenantId,
10021008
input.accessTokenPayload,
1003-
input.userContext,
1009+
input.userContext
10041010
)),
10051011
};
10061012

add-ts-no-check.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ glob(__dirname + "/lib/**/*.d.ts", (err, files) => {
1212
newContents += `\n${line}`;
1313
}
1414
}
15+
newContents = newContents.replaceAll("\n// @ts-nocheck", "");
1516
writeFileSync(file, newContents);
1617
}
1718
});

lib/build/recipe/multitenancy/allowedDomainsClaim.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/oauth2provider/constants.js

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

lib/build/recipe/session/constants.js

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

lib/build/recipe/userroles/permissionClaim.js

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

lib/build/recipe/userroles/userRoleClaim.js

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

lib/ts/core/versions/5.3/schema.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
// @ts-nocheck
2-
// @ts-nocheck
3-
// @ts-nocheck
4-
// @ts-nocheck
5-
// @ts-nocheck
6-
// @ts-nocheck
7-
// @ts-nocheck
8-
// @ts-nocheck
92
/**
103
* This file was auto-generated by openapi-typescript.
114
* Do not make direct changes to the file.

lib/ts/recipe/multitenancy/allowedDomainsClaim.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class AllowedDomainsClaimClass extends PrimitiveArrayClaim<string> {
1616
}
1717
return await recipe.getAllowedDomainsForTenantId(tenantId, userContext);
1818
},
19-
defaultMaxAgeInSeconds: 3600,
19+
defaultMaxAgeInSeconds: undefined,
2020
});
2121
}
2222
}

lib/ts/recipe/userroles/permissionClaim.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export class PermissionClaimClass extends PrimitiveArrayClaim<string> {
3434

3535
return Array.from(userPermissions);
3636
},
37-
defaultMaxAgeInSeconds: 300,
3837
});
3938
}
4039
}

0 commit comments

Comments
 (0)