File size: 800 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { IMMEDIATE_LOGIN_SAVE_INFO } from 'calypso/state/action-types';

import 'calypso/state/immediate-login/init';

/**
 * Stores immediate link-related information in state so it can be reused later
 * @param {boolean} success - Whether the immediate login attempt was successful.
 * @param {string} reason - Reason for this immediate login, if known.
 * @param {string} email - Email address used for the immediate login attempt,
 *                         if known.
 * @param {string} locale - Two-letter code for the preferred language of the
 *                          user attempting to log in, if known.
 * @returns {void}
 */
export const saveImmediateLoginInformation = ( success, reason, email, locale ) => ( {
	type: IMMEDIATE_LOGIN_SAVE_INFO,
	success,
	reason,
	email,
	locale,
} );