Options
All
  • Public
  • Public/Protected
  • All
Menu

Module auth/nodejs

Index

Functions

Functions

Const authMiddleware

  • authMiddleware(authException: any): (Anonymous function)
  • Creates function that accepts Role and returns middleware function for resolvers Checks whether user is logged and have atleast required role. In case of error throws exception.

    Parameters

    • authException: any

      Object to be thrown in case of unsuccesfull authentication

    Returns (Anonymous function)

Generated using TypeDoc