Skip to content

Commit

Permalink
Changed route from /magic-link to /magic-links (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccannon authored Apr 3, 2024
1 parent 30c0473 commit bdca2d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void deleteUser(DeleteUser deleteUser) throws PasswordlessApiException, I
public void sendMagicLink(SendMagicLinkOptions options) throws PasswordlessApiException, IOException {
Objects.requireNonNull(options, "options cannot be null");

ClassicHttpRequest request = passwordlessHttpClient.createPostRequest("magic-link/send", options);
ClassicHttpRequest request = passwordlessHttpClient.createPostRequest("magic-links/send", options);

passwordlessHttpClient.sendRequest(request, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void deleteUser_validRequest_validResponse() throws PasswordlessApiException, IO

@Test
void sendMagicLink_validRequest_validResponse() throws PasswordlessApiException, IOException {
wireMock.stubFor(post(urlEqualTo("/magic-link/send"))
wireMock.stubFor(post(urlEqualTo("/magic-links/send"))
.willReturn(WireMock.ok()));

SendMagicLinkOptions request = DataFactory.sendMagicLinkRequest();
Expand All @@ -384,7 +384,7 @@ void sendMagicLink_validRequest_validResponse() throws PasswordlessApiException,
void sendMagicLink_errorResponse_PasswordlessApiException() throws JsonProcessingException {
PasswordlessProblemDetails problemDetails = DataFactory.passwordlessProblemDetailsInvalidToken();

wireMock.stubFor(post(urlEqualTo("/magic-link/send"))
wireMock.stubFor(post(urlEqualTo("/magic-links/send"))
.willReturn(wireMockUtils.createProblemDetailsResponse(problemDetails)));

SendMagicLinkOptions request = DataFactory.sendMagicLinkRequest();
Expand Down

0 comments on commit bdca2d7

Please sign in to comment.