src/lib/synq.ts
src/lib/synq.tsimport { synqAuth } from '@synqauth/nextjs'
import { siwsServerPlugin } from '@synqauth/plugin-siws/server'
import { synqConfig } from '../synq.config'
// The route mount at /api/auth (app/api/auth/[...synq]/route.ts) and the
// server's view of the session: `await synq.me()` in any server component.
// The SIWS plugin's server half tells the page which issuer and app to ask
// for a wallet sign-in request, for the in-page wallet sign-in.
export const synq = synqAuth({ ...synqConfig, plugins: [siwsServerPlugin()] })