UNPKG

nest-oidc-provider

Version:

oidc-provider module for Nest framework (node.js)

21 lines (20 loc) 671 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractionHelper = void 0; class InteractionHelper { constructor(ctx) { this.ctx = ctx; const { oidc } = ctx; this.provider = oidc.provider; } details() { return this.provider.interactionDetails(this.ctx.req, this.ctx.res); } finished(result, options) { return this.provider.interactionFinished(this.ctx.req, this.ctx.res, result, options); } result(result, options) { return this.provider.interactionResult(this.ctx.req, this.ctx.res, result, options); } } exports.InteractionHelper = InteractionHelper;