Skip to content

Framework bindings

Every tool exposes three routes: OIDC login, launch, and JWKS. Pick how you wire them.

app/api/lti/login/route.ts
export const POST = oidcLogin(lti, { redirectUri: `${APP_URL}/api/lti/launch` })
// app/api/lti/launch/route.ts
export const POST = launch(lti, async (result) => {
/* create session (see Auth integration) */ return sessionRedirect({ to: '/home', cookies: [] })
})
// app/.well-known/jwks.json/route.ts
export const GET = jwks(lti)

From @ltikit/next. Also exports iframe helpers (cspFrameAncestors, sameSiteNoneCookie, sessionRedirect, frameResizeScript).