You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
816 B

/**
* Creator: Christian Hotz
* Company: hydra newmedia GmbH
* Date: 27.06.16
*
* Copyright hydra newmedia GmbH
*/
import { Request } from 'express';
import { Strategy as PassportStrategy } from 'passport-strategy';
export declare class Strategy extends PassportStrategy {
apiKeyHeader: {
header: string;
prefix: string;
};
name: string;
verify: (apiKey: string, verified: (err: Error | null, user?: Object, info?: Object) => void, req?: Request) => void;
passReqToCallback: boolean;
constructor(header: {
header: string;
prefix: string;
}, passReqToCallback: boolean, verify: (apiKey: string, verified: (err: Error | null, user?: Object, info?: Object) => void, req?: Request) => void);
authenticate(req: Request, options?: Object): void;
}