16 lines
429 B
JavaScript
16 lines
429 B
JavaScript
import methods from './methods';
|
|
import makeAsyncActionSet from './makeAsyncActionSet';
|
|
import buildAsyncAction from './buildAsyncAction';
|
|
import endpoints from '../settings/endpoints';
|
|
|
|
|
|
export const LOGIN = makeAsyncActionSet('LOGIN');
|
|
export function login(token) {
|
|
return buildAsyncAction(
|
|
LOGIN,
|
|
endpoints.get('USER_INFO').query({ 'circle-token': token }).toString(),
|
|
methods.GET,
|
|
{},
|
|
{ token }
|
|
);
|
|
}
|