The DAMAGE Compendium

The compendium is a collection of guidelines and best practices we use internally. Hoping that others might also find it useful, we've made it public. Happy exploring!

session-util.ts
package.json
export const verifySession = cache(async () => {
const cookie = (await cookies()).get('session')?.value
const session = await decrypt(cookie)
if (!session?.userId) {
redirect('/login')
}
return { isAuth: true, userId: session.userId }
})

Getting started

Quickly find your way around in our compendium

There's not much here right now!

We're just getting started with the DAMAGE compendium project. More content will be added as we go about our other endeavors.


Quick start

Use the left sidebar to navigate through the compendium. You can also press ⌘K to search for a specific topic across all pages, headlines, and content.

Contributing

Contributions to the compendium are welcome! If you have suggestions for new content or improvements, please open an issue or pull request on the GitHub repository.

"Oh no! This is wrong!"

Found outdated or incorrect information? Open an issue or pull request on the compendium's GitHub repository and we'll get it sorted out.