From f77d78911b3de921f0bbee92209424e4f782af7c Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Sat, 26 Oct 2024 02:13:54 +0200 Subject: [PATCH] feat: remove unused functions and add new exception --- .../supertokens/pluginInterface/oauth/OAuthStorage.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/io/supertokens/pluginInterface/oauth/OAuthStorage.java b/src/main/java/io/supertokens/pluginInterface/oauth/OAuthStorage.java index 30d4e2fb..e3338ba5 100644 --- a/src/main/java/io/supertokens/pluginInterface/oauth/OAuthStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/oauth/OAuthStorage.java @@ -49,12 +49,10 @@ public void addOAuthLogoutChallenge(AppIdentifier appIdentifier, String challeng public void deleteOAuthLogoutChallengesBefore(long time) throws StorageQueryException; - public void createOrUpdateOAuthSession(AppIdentifier appIdentifier, String gid, String clientId, String externalRefreshToken, String internalRefreshToken, String sessionHandle, List jtis, long exp) throws StorageQueryException; + public void createOrUpdateOAuthSession(AppIdentifier appIdentifier, String gid, String clientId, String externalRefreshToken, String internalRefreshToken, String sessionHandle, List jtis, long exp) throws StorageQueryException, OAuthClientNotFoundException; public String getRefreshTokenMapping(AppIdentifier appIdentifier, String externalRefreshToken) throws StorageQueryException; - public void deleteRefreshTokenMapping(AppIdentifier appIdentifier, String externalRefreshToken) throws StorageQueryException; - public void deleteExpiredOAuthSessions(long exp) throws StorageQueryException; public int countTotalNumberOfOAuthClients(AppIdentifier appIdentifier) throws StorageQueryException; @@ -75,10 +73,6 @@ public void addOAuthLogoutChallenge(AppIdentifier appIdentifier, String challeng public boolean isOAuthTokenRevokedByGID(AppIdentifier appIdentifier, String gid) throws StorageQueryException; - public boolean isOAuthTokenRevokedByClientId(AppIdentifier appIdentifier, String clientId) throws StorageQueryException; - - public boolean isOAuthTokenRevokedBySessionHandle(AppIdentifier appIdentifier, String sessionHandle) throws StorageQueryException; - public boolean isOAuthTokenRevokedByJTI(AppIdentifier appIdentifier, String gid, String jti) throws StorageQueryException; }