diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -1324,7 +1324,7 @@ } | { +type: 'SET_ACCESS_TOKEN', - +payload: string, + +payload: ?string, } | { +type: 'UPDATE_THREAD_LAST_NAVIGATED', diff --git a/native/components/access-token-handler.react.js b/native/components/access-token-handler.react.js --- a/native/components/access-token-handler.react.js +++ b/native/components/access-token-handler.react.js @@ -18,7 +18,7 @@ await commCoreModule.getCommServicesAuthMetadata(); dispatch({ type: setAccessTokenActionType, - payload: accessToken, + payload: accessToken ?? null, }); })(); }, [dispatch]);