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.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							560 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							560 B
						
					
					
				import { FastifyPlugin, FastifyRequest, FastifyReply, preHandlerHookHandler, FastifyInstance } from 'fastify';
 | 
						|
 | 
						|
export type FastifyAuthFunction = (
 | 
						|
  this: FastifyInstance,
 | 
						|
  request: FastifyRequest,
 | 
						|
  reply: FastifyReply,
 | 
						|
  done: (error?: Error) => void
 | 
						|
) => void;
 | 
						|
 | 
						|
declare module 'fastify' {
 | 
						|
  interface FastifyInstance {
 | 
						|
    auth(
 | 
						|
      functions: FastifyAuthFunction[],
 | 
						|
      options?: {
 | 
						|
        relation?: 'and' | 'or',
 | 
						|
        run?: 'all'
 | 
						|
      }
 | 
						|
    ): preHandlerHookHandler;
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
declare const fastifyAuth: FastifyPlugin;
 | 
						|
export default fastifyAuth;
 |