diff --git a/lib/actions/siwe-actions.js b/lib/actions/siwe-actions.js index 0df49299b..13ecc9fab 100644 --- a/lib/actions/siwe-actions.js +++ b/lib/actions/siwe-actions.js @@ -1,17 +1,17 @@ // @flow import type { CallServerEndpoint } from '../utils/call-server-endpoint'; const getSIWENonceActionTypes = Object.freeze({ started: 'GET_SIWE_NONCE_STARTED', success: 'GET_SIWE_NONCE_SUCCESS', failed: 'GET_SIWE_NONCE_FAILED', }); const getSIWENonce = ( callServerEndpoint: CallServerEndpoint, ): (() => Promise) => async () => { - const nonce = await callServerEndpoint('siwe_nonce'); - return nonce; + const response = await callServerEndpoint('siwe_nonce'); + return response.nonce; }; export { getSIWENonceActionTypes, getSIWENonce };