'use strict'; /** * @typedef {{authenticated: boolean, error?: string, credentials?: Record}} AuthenticateResponse * @typedef {(ctx: Record) => AuthenticateResponse | Promise} AuthenticateFunction * @typedef {{strategy: AuthStrategy, credentials?: Record}} VerifyInputAuth * @typedef {{scope: string, [key: any]: any}} VerifyInputConfig * @typedef {(auth: VerifyInputAuth, config: VerifyInputConfig) => void | Promise} VerifyFunction */ /** * @typedef AuthStrategy * * @property {string} name * @property {AuthenticateFunction} authenticate * @property {VerifyFunction} [verify] */ /** * @type {Record} */ module.exports = { admin: require('./admin'), 'api-token': require('./api-token'), };