UNPKG

oidc-provider

Version:

OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect

13 lines (10 loc) 302 B
import { RegistrationNotSupported } from '../../helpers/errors.js'; /* * Rejects registration parameter as not supported. */ export default function rejectRegistration(ctx, next) { if (ctx.oidc.params.registration !== undefined) { throw new RegistrationNotSupported(); } return next(); }