Skip to main content

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

  • Passport exposes passport (the underlying Passport.js instance), Decorators (Bearer, Passkey, and other built-in strategy decorators), Providers (OAuth provider registration), Passkey (passkey helper API), Scalar.createPasskeyConfiguration, and Strategies (register/registerBatch/all).
  • Built-in strategies (basic, bearer, passkey) and any registered OAuth providers are wired into the Express engine during onAfterInit — the module must be registered after @quik/http-express and @quik/authorization in bootstrap.
  • Passkey HTTP endpoints are not registered by this package by default unless auth.passkey.http.enabled is set; for ready-to-use passkey routes load @quik/passport-passkey.