Skip to content

Commit a01dcf0

Browse files
committed
Updates migration guide
1 parent 7f43373 commit a01dcf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

V3_MIGRATION_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ Chain any combination of the following modifiers after `validateClaims()`:
514514
515515
> **Note:** If `validateClaims()` is enabled but the response does not contain an ID token, the request fails with `AuthenticationError` wrapping `IDTokenDecodingError.missingIDToken` rather than silently succeeding.
516516
517-
**Affected methods** (now return `any TokenRequestable` instead of `any Requestable`):
517+
**Affected methods** (now return `any TokenRequestable` instead of `Request`):
518518

519519
- `Authentication.login(email:code:audience:scope:)`
520520
- `Authentication.login(phoneNumber:code:audience:scope:)`
@@ -533,7 +533,7 @@ Chain any combination of the following modifiers after `validateClaims()`:
533533
- `MFAClient.verify(otp:mfaToken:)`
534534
- `MFAClient.verify(recoveryCode:mfaToken:)`
535535

536-
**Impact:** No migration required for existing call sites. If you implement the `Authentication` protocol in your own mocks or test doubles, update the return type of the affected methods from `any Requestable<Credentials, AuthenticationError>` to `any TokenRequestable<Credentials, AuthenticationError>` (see the [mocking example](#request-to-requestable) above).
536+
**Impact:** No migration required for existing call sites. If you implement the `Authentication` protocol in your own mocks or test doubles, update the return type of the affected methods from `Request<Credentials, AuthenticationError>` to `any TokenRequestable<Credentials, AuthenticationError>` (see the [mocking example](#request-to-requestable) above).
537537

538538
---
539539

0 commit comments

Comments
 (0)