feat: init rate limiting. functional on passcode/init

This commit is contained in:
Felix Dubrownik
2023-01-20 19:02:36 +01:00
parent a914602b5f
commit 79c07ec0b5
17 changed files with 460 additions and 14 deletions

View File

@ -74,7 +74,7 @@ describe("PasscodeClient.initialize()", () => {
passcodeRetryAfter
);
expect(passcodeClient.state.write).toHaveBeenCalledTimes(1);
expect(response.headers.get).toHaveBeenCalledWith("X-Retry-After");
expect(response.headers.get).toHaveBeenCalledWith("Retry-After");
});
it("should throw error when API response is not ok", async () => {