File size: 789 Bytes
a5d718a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { RequestHandler } from 'express';
import { OAuthRegisteredClientsStore } from '../clients.js';
import { OAuthClientInformationFull } from '../../../shared/auth.js';
export type ClientAuthenticationMiddlewareOptions = {
    /**

     * A store used to read information about registered OAuth clients.

     */
    clientsStore: OAuthRegisteredClientsStore;
};
declare module 'express-serve-static-core' {
    interface Request {
        /**

         * The authenticated client for this request, if the `authenticateClient` middleware was used.

         */
        client?: OAuthClientInformationFull;
    }
}
export declare function authenticateClient({ clientsStore }: ClientAuthenticationMiddlewareOptions): RequestHandler;
//# sourceMappingURL=clientAuth.d.ts.map