@supabase/ssr
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -72,3 +72,3 @@ "use strict"; | ||
headers: { | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.1"}` | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.2"}` | ||
} | ||
@@ -95,3 +95,4 @@ }, | ||
...DEFAULT_COOKIE_OPTIONS, | ||
...cookieOptions | ||
...cookieOptions, | ||
maxAge: DEFAULT_COOKIE_OPTIONS.maxAge | ||
}); | ||
@@ -102,3 +103,4 @@ } | ||
...DEFAULT_COOKIE_OPTIONS, | ||
...cookieOptions | ||
...cookieOptions, | ||
maxAge: DEFAULT_COOKIE_OPTIONS.maxAge | ||
}); | ||
@@ -111,4 +113,4 @@ } | ||
...DEFAULT_COOKIE_OPTIONS, | ||
maxAge: 0, | ||
...cookieOptions | ||
...cookieOptions, | ||
maxAge: 0 | ||
}); | ||
@@ -119,4 +121,4 @@ } | ||
...DEFAULT_COOKIE_OPTIONS, | ||
maxAge: 0, | ||
...cookieOptions | ||
...cookieOptions, | ||
maxAge: 0 | ||
}); | ||
@@ -172,3 +174,3 @@ } | ||
headers: { | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.1"}` | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.2"}` | ||
} | ||
@@ -183,4 +185,8 @@ }, | ||
getItem: async (key) => await cookies.get(key) ?? null, | ||
setItem: async (key, value) => await cookies.set(key, value, { ...DEFAULT_COOKIE_OPTIONS, ...cookieOptions }), | ||
removeItem: async (key) => await cookies.remove(key, { ...DEFAULT_COOKIE_OPTIONS, maxAge: 0, ...cookieOptions }) | ||
setItem: async (key, value) => await cookies.set(key, value, { | ||
...DEFAULT_COOKIE_OPTIONS, | ||
...cookieOptions, | ||
maxAge: DEFAULT_COOKIE_OPTIONS.maxAge | ||
}), | ||
removeItem: async (key) => await cookies.remove(key, { ...DEFAULT_COOKIE_OPTIONS, ...cookieOptions, maxAge: 0 }) | ||
} | ||
@@ -187,0 +193,0 @@ } |
{ | ||
"name": "@supabase/ssr", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36862
387