diff --git a/lib/types/account-types.js b/lib/types/account-types.js --- a/lib/types/account-types.js +++ b/lib/types/account-types.js @@ -103,7 +103,7 @@ ...LogInExtraInfo, +username: string, +password: string, - +source?: ?LogInActionSource, + +source: LogInActionSource, }; export type LogInRequest = { @@ -136,7 +136,7 @@ +userInfos: $ReadOnlyArray, +calendarResult: CalendarResult, +updatesCurrentAsOf: number, - +source?: ?LogInActionSource, + +source: LogInActionSource, }; export type UpdatePasswordRequest = { diff --git a/lib/utils/config.js b/lib/utils/config.js --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -11,7 +11,7 @@ +resolveInvalidatedCookie: ?( fetchJSON: FetchJSON, dispatchRecoveryAttempt: DispatchRecoveryAttempt, - source?: LogInActionSource, + source: LogInActionSource, ) => Promise, +setCookieOnRequest: boolean, +setSessionIDOnRequest: boolean, diff --git a/native/account/resolve-invalidated-cookie.js b/native/account/resolve-invalidated-cookie.js --- a/native/account/resolve-invalidated-cookie.js +++ b/native/account/resolve-invalidated-cookie.js @@ -13,7 +13,7 @@ async function resolveInvalidatedCookie( fetchJSON: FetchJSON, dispatchRecoveryAttempt: DispatchRecoveryAttempt, - source?: LogInActionSource, + source: LogInActionSource, ) { const keychainCredentials = await fetchNativeKeychainCredentials(); if (!keychainCredentials) {