(cookiesToSet)
| 23 | return cookieStore.getAll(); |
| 24 | }, |
| 25 | setAll(cookiesToSet) { |
| 26 | if (component) return; |
| 27 | |
| 28 | try { |
| 29 | cookiesToSet.forEach(({ name, value, options }) => cookieStore.set(name, value, options)); |
| 30 | } catch { |
| 31 | // The `setAll` method was called from a Server Component. |
| 32 | // This can be ignored if you have middleware refreshing |
| 33 | // user sessions. |
| 34 | } |
| 35 | }, |
| 36 | }, |
| 37 | }); |
| 38 | } |