Skip to main content

NAuthResponse

Package: @nauth-toolkit/core Type: Interface

Standardized response contract for platform adapters.

import { NAuthResponse } from '@nauth-toolkit/nestjs';

Properties​

PropertyTypeRequiredDescription
rawunknownYesEscape hatch (framework response)

Methods​

MethodReturnsDescription
status(code)thisSet status code
header(name, value)thisSet header
setCookie(name, value, options?)thisSet cookie
clearCookie(name, options?)thisClear cookie
send(body)voidSend body
json(body)voidSend JSON
redirect(url, status?)voidRedirect
isSent()booleanWhether headers were sent