Quickstart
import { Passport } from '@quik/passport';
import { Decorators, QRoute } from '@quik/http';
@Decorators.Route.Route('/me')
export class MeRoute extends QRoute {
@Passport.Decorators.Bearer
@Decorators.Endpoint.GET('/')
async get() {
return { ok: true };
}
}
Notes
Passportexposespassport(the underlying Passport.js instance),Decorators(Bearer,Passkey, and other built-in strategy decorators),Providers(OAuth provider registration),Passkey(passkey helper API),Scalar.createPasskeyConfiguration, andStrategies(register/registerBatch/all).- Built-in strategies (
basic,bearer,passkey) and any registered OAuth providers are wired into the Express engine duringonAfterInit— the module must be registered after@quik/http-expressand@quik/authorizationin bootstrap. - Passkey HTTP endpoints are not registered by this package by default unless
auth.passkey.http.enabledis set; for ready-to-use passkey routes load@quik/passport-passkey.