Skip to content

Allow update fields of the different auth types #1334

@russojrv-zz

Description

@russojrv-zz

In the OIH framework, right now, it only allows you to update the auth client basic fields from its schema. In case, you want to update some no common fields you cannot

  • Allow update fields from different types of auth types
  • One limitation is that you have to be sure that you send the auth type in the body

Solution Proposal

const result = await AuthClient[data.type].findOneAndUpdate({ _id: id, }, updateOperation, { new: true, }).lean();

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions