13 lines
290 B
TypeScript
13 lines
290 B
TypeScript
import { createCookieSessionStorage } from 'react-router'
|
|
|
|
const { getSession, commitSession, destroySession } =
|
|
createCookieSessionStorage({
|
|
cookie: {
|
|
name: 'session_id',
|
|
httpOnly: true,
|
|
secure: true
|
|
}
|
|
})
|
|
|
|
export { getSession, commitSession, destroySession }
|