@dvelop-sdk
    Preparing search index...

    Function authenticationMiddleware

    • Authenticate an authSessionId by sending it to the Identityprovder-App. In case of success a DvelopUser object will be available in the request.dvelopContext.user-property. If the authSessionId is not validated data is anonimously available on the internet.

      import { authenticationMiddleware } from "@dvelop-sdk/express-utils";

      app.use(authenticationMiddleware);

      Parameters

      • req: Request
      • res: Response
      • next: NextFunction

      Returns Promise<void>