import Cookies from 'cookies-js';
import App from './App';

export default {

  serialize(state) {
    Cookies.set(App.AUTH_KEY, JSON.stringify(state));
  },

  deserialize() {
    return JSON.parse(Cookies.get(App.AUTH_KEY) || 'null');
  }

};


@@ -88,23 +88,61 @@
 ze(state
-) %7B%0A   
+, cookieSetter = null) %7B%0A    (cookieSetter %7C%7C
  Cookies
@@ -145,16 +145,17 @@
 kies.set
+)
 (App.AUT
@@ -205,16 +205,35 @@
 rialize(
+cookieGetter = null
 ) %7B%0A    
@@ -250,16 +250,33 @@
 N.parse(
+(cookieGetter %7C%7C 
 Cookies.
@@ -278,16 +278,17 @@
 kies.get
+)
 (App.AUT

add cookieSetter option to CookieSerializer