import type { FastifyRequest, FastifyReply } from 'fastify'; import type { TokenObject } from '@pylonts/core'; export interface AuthContext { /** App name from @Login(module) / @LoginEntry(app). Falls back to x-app-key. */ moduleName?: string; /** Route is a login entry (@LoginEntry) — token-less bootstrap/refresh verify allowed. */ isLoginEntry: boolean; /** Route is marked @Login — requires a logged-in identity on the token * (security-only anonymous tokens are rejected). Unmarked routes only * require a valid signature (anonymous browsing). */ requireIdentity?: boolean; } export interface AuthStrategy { authenticate(request: FastifyRequest, reply: FastifyReply, ctx?: AuthContext): Promise; } //# sourceMappingURL=AuthStrategy.d.ts.map