Skip to content

Commit

Permalink
AYS-558 / Removed accessTokenExpiresAt from Token Service
Browse files Browse the repository at this point in the history
  • Loading branch information
filizhelvaci committed Nov 28, 2024
1 parent 594c938 commit d720aa8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
public class AysTokenResponse {

private String accessToken;
private Long accessTokenExpiresAt;
private String refreshToken;

}
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ void givenValidLoginRequestWithValidEmailAddress_whenTokensGeneratedSuccessfully
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessToken")
.value(mockResponse.getResponse().getAccessToken()))
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessTokenExpiresAt")
.value(mockResponse.getResponse().getAccessTokenExpiresAt()))
.andExpect(MockMvcResultMatchers.jsonPath("$.response.refreshToken")
.value(mockResponse.getResponse().getRefreshToken()));

Expand Down Expand Up @@ -181,8 +179,6 @@ void givenValidTokenRefreshRequest_whenAccessTokenGeneratedSuccessfully_thenRetu
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessToken")
.value(mockResponse.getResponse().getAccessToken()))
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessTokenExpiresAt")
.value(mockResponse.getResponse().getAccessTokenExpiresAt()))
.andExpect(MockMvcResultMatchers.jsonPath("$.response.refreshToken")
.value(mockResponse.getResponse().getRefreshToken()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ void givenValidUserLoginRequest_whenTokensGeneratedSuccessfully_thenReturnTokenR
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessToken")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessTokenExpiresAt")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.refreshToken")
.isNotEmpty());
}
Expand All @@ -103,8 +101,6 @@ void givenValidTokenRefreshRequest_whenAccessTokenGeneratedSuccessfully_thenRetu
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessToken")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessTokenExpiresAt")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.refreshToken")
.isNotEmpty());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ void givenValidRequest_whenRateLimitExceededInPublicEndpoint_thenReturnTooManyRe
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessToken")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.accessTokenExpiresAt")
.isNotEmpty())
.andExpect(MockMvcResultMatchers.jsonPath("$.response.refreshToken")
.isNotEmpty());
}
Expand Down

0 comments on commit d720aa8

Please sign in to comment.