willin/svelte-session

View on GitHub
src/hooks.server.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { handleSession } from '$lib/index.js';

export const handle = handleSession({
  adapter: {
    name: 'cookie',
    options: {
      chunk: true
    }
  },
  session: {
    secrets: ['s3cr3t']
  },
  cookie: {
    path: '/'
  }
});