Skip to content

Commit e323d4e

Browse files
committed
chore: updated changelog
1 parent 3dbf723 commit e323d4e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
### Added
11+
12+
- Added support for session claims with related interfaces and classes.
13+
- Added `EmailVerificationClaim`.
14+
- `Mode` config is added to `evmodels.TypeInput`
15+
- `GetEmailForUserID` config is added to `evmodels.TypeInput`
16+
- Added `onInvalidClaim` optional error handler to send InvalidClaim error responses.
17+
- Added `INVALID_CLAIMS` to `SessionErrors`.
18+
- Added `InvalidClaimStatusCode` optional config to set the status code of InvalidClaim errors.
19+
- Added `OverrideGlobalClaimValidators` to options of `getSession` and `verifySession`.
20+
- Added `MergeIntoAccessTokenPayload` to the Session recipe and session objects which should be preferred to the now deprecated `UpdateAccessTokenPayload`.
21+
- Added `AssertClaims`, `ValidateClaimsForSessionHandle`, `ValidateClaimsInJWTPayload` to the Session recipe to support validation of the newly added `EmailVerificationClaim`.
22+
- Added `FetchAndSetClaim`, `GetClaimValue`, `SetClaimValue` and `RemoveClaim` to the Session recipe to manage claims.
23+
- Added `AssertClaims`, `FetchAndSetClaim`, `GetClaimValue`, `SetClaimValue` and `RemoveClaim` to session objects to manage claims.
24+
- Added sessionContainer to the input of `GenerateEmailVerifyTokenPOST`, `VerifyEmailPOST`, `IsEmailVerifiedGET`.
25+
- Adds default UserContext for verifySession calls that contains the request object.
26+
- Added `UserRoleClaim` and `PermissionClaim` to user roles recipe.
27+
28+
### Breaking changes
29+
- Changed `SignInUp` third party recipe function to accept an email string instead of an object that takes `{ID: string, IsVerified: boolean}`.
30+
- The frontend SDK should be updated to a version supporting session claims!
31+
- supertokens-auth-react: >= 0.25.0
32+
- supertokens-web-js: >= 0.2.0
33+
- `EmailVerification` recipe is now not initialized as part of auth recipes, it should be added to the `recipeList` directly instead.
34+
- Email verification related overrides (`EmailVerificationFeature` prop of `Override`) moved from auth recipes into the `EmailVerification` recipe config.
35+
- ThirdParty recipe no longer takes EmailDelivery config -> use Emailverification recipe's EmailDelivery instead.
36+
- Moved email verification related configs from the `EmailDelivery` config of auth recipes into a separate `EmailVerification` email delivery config.
37+
- Updated return type of `GetEmailForUserId` in the `EmailVerification` recipe config. It should now return `OK`, `EmailDoesNotExistError` or `UnknownUserIDError` as response.
38+
- Removed `GetResetPasswordURL`, `GetEmailVerificationURL`, `GetLinkDomainAndPath`. Changing these urls can be done in the email delivery configs instead.
39+
- Removed `UnverifyEmail`, `RevokeEmailVerificationTokens`, `IsEmailVerified`, `VerifyEmailUsingToken` and `CreateEmailVerificationToken` from auth recipes. These should be called on the `EmailVerification` recipe instead.
40+
- Changed function signature for email verification APIs to accept a sessionContainer as an input.
41+
- Changed Session API interface functions:
42+
- `RefreshPOST` now returns a Session container object.
43+
- `SignOutPOST` now takes in an optional session object as a parameter.
44+
- `SessionContainer` is renamed to `TypeSessionContainer` and `SessionContainer` is now an alias for `*TypeSessionContainer`. All `*SessionContainer` is now replaced with `SessionContainer`.
45+
- `SendNon200Response` is renamed to `SendNon200ResponseWithMessage` and `SendNon200Response` takes in a body parameter.
46+
47+
1048
## [0.8.3] - 2022-07-30
1149
### Added
1250
- Adds test to verify that session container uses overridden functions

0 commit comments

Comments
 (0)