|
|
@ -31,6 +31,13 @@ export const { fetchCredentials, logout } = createActions({
|
|
|
|
LOGOUT: () => undefined,
|
|
|
|
LOGOUT: () => undefined,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: This is duplicating behaviour from the fetchCredentials above
|
|
|
|
|
|
|
|
export const { deriveKey } = createActions({
|
|
|
|
|
|
|
|
DERIVE_KEY: (username: string, encryptionPassword: string) => {
|
|
|
|
|
|
|
|
return EteSync.deriveKey(username, encryptionPassword);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const { fetchJournals } = createActions({
|
|
|
|
export const { fetchJournals } = createActions({
|
|
|
|
FETCH_JOURNALS: (etesync: CredentialsData) => {
|
|
|
|
FETCH_JOURNALS: (etesync: CredentialsData) => {
|
|
|
|
const creds = etesync.credentials;
|
|
|
|
const creds = etesync.credentials;
|
|
|
|