Skip to content

Commit dceaf46

Browse files
porcellusMihaly Lengyel
andauthored
Delete user (#28)
* Bumped version * Added user deletion methods * Updated method names to reduce conflicts Co-authored-by: Mihaly Lengyel <[email protected]>
1 parent cb52a13 commit dceaf46

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [2.10.0] - 2021-12-16
10+
11+
### Added
12+
13+
- User deletion methods
14+
915
## [2.9.0] - 2021-08-08
1016
### Added
1117
- JWT recipe related changes

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java-library'
33
}
44

5-
version = "2.9.0"
5+
version = "2.10.0"
66

77
repositories {
88
mavenCentral()

src/main/java/io/supertokens/pluginInterface/emailpassword/EmailPasswordStorage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public interface EmailPasswordStorage extends AuthRecipeStorage {
2929

3030
void signUp(UserInfo userInfo) throws StorageQueryException, DuplicateUserIdException, DuplicateEmailException;
3131

32+
void deleteEmailPasswordUser(String userId) throws StorageQueryException;
33+
3234
UserInfo getUserInfoUsingId(String id) throws StorageQueryException;
3335

3436
UserInfo getUserInfoUsingEmail(String email) throws StorageQueryException;

src/main/java/io/supertokens/pluginInterface/emailverification/EmailVerificationStorage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ void addEmailVerificationToken(EmailVerificationTokenInfo emailVerificationInfo)
2727

2828
EmailVerificationTokenInfo getEmailVerificationTokenInfo(String token) throws StorageQueryException;
2929

30+
void deleteEmailVerificationUserInfo(String userId) throws StorageQueryException;
31+
3032
void revokeAllTokens(String userId, String email) throws StorageQueryException;
3133

3234
void unverifyEmail(String userId, String email) throws StorageQueryException;

src/main/java/io/supertokens/pluginInterface/session/SessionStorage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public interface SessionStorage extends Storage {
2626
void createNewSession(String sessionHandle, String userId, String refreshTokenHash2, JsonObject userDataInDatabase,
2727
long expiry, JsonObject userDataInJWT, long createdAtTime) throws StorageQueryException;
2828

29+
void deleteSessionsOfUser(String userId) throws StorageQueryException;
30+
2931
// return number of rows else throw UnsupportedOperationException
3032
int getNumberOfSessions() throws StorageQueryException;
3133

src/main/java/io/supertokens/pluginInterface/thirdparty/ThirdPartyStorage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public interface ThirdPartyStorage extends AuthRecipeStorage {
2828
void signUp(UserInfo userInfo)
2929
throws StorageQueryException, DuplicateUserIdException, DuplicateThirdPartyUserException;
3030

31+
void deleteThirdPartyUser(String userId) throws StorageQueryException;
32+
3133
UserInfo getThirdPartyUserInfoUsingId(String thirdPartyId, String thirdPartyUserId) throws StorageQueryException;
3234

3335
UserInfo getThirdPartyUserInfoUsingId(String userId) throws StorageQueryException;

0 commit comments

Comments
 (0)