UNPKG

loopback4-authentication

Version:

A loopback-next extension for authentication feature. Various Oauth strategies supported by this package.

18 lines 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CognitoAuthVerifyProvider = void 0; const rest_1 = require("@loopback/rest"); /** * A provider for default implementation of VerifyFunction.CognitoAuthFn * * It will just throw an error saying Not Implemented */ class CognitoAuthVerifyProvider { value() { return async (accessToken, refreshToken, profile, cb, req) => { throw new rest_1.HttpErrors.NotImplemented(`VerifyFunction.CognitoAuthFn is not implemented`); }; } } exports.CognitoAuthVerifyProvider = CognitoAuthVerifyProvider; //# sourceMappingURL=cognito-auth-verify.provider.js.map