You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: V3_MIGRATION_GUIDE.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ As expected with a major release, Auth0.swift v3 contains breaking changes. Plea
31
31
-[**API Changes**](#api-changes)
32
32
+[WebAuthError cases](#webautherror-cases)
33
33
+[Renamed APIs](#renamed-apis)
34
+
+[Request to Requestable](#requestable)
34
35
35
36
---
36
37
@@ -369,5 +370,69 @@ let user: UserProfile = ...
369
370
```
370
371
</details>
371
372
373
+
## Request to Requestable
374
+
375
+
**Change:** API Clients Authentication, MFAClient, MyAccountAuthenticationMethods have been refactored to return Requestable instead of Request
376
+
377
+
**Impact:** With returning Requestable protocol instead of Request, developers can now mock Request in the api clients thus mocking Auth0 layer making writing tests supper easy
378
+
379
+
**Reason:** With existing Request object it was hard to mock Auth0 SDK layer. Only way to mock was using URLProtocol. With Requestable, developers can mock requests and write tests without heavy lifting of mocking url session layer
0 commit comments