We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d196d commit ef7561aCopy full SHA for ef7561a
1 file changed
index.ts
@@ -116,6 +116,10 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
116
opts?: { adminUser?: AdminUser; userPk?: string; cookies?: any, response?: IAdminForthHttpResponse, extra?: HttpExtra }
117
): Promise<{ ok: true } | { error: string }> {
118
if (!confirmationResult) return { error: "Confirmation result is required" };
119
+ if (!opts.adminUser) return { error: "Admin user is required" };
120
+ if (!opts.userPk) return { error: "User PK is required" };
121
+ if (!opts.response) return { error: "Response object is required" };
122
+ if (!opts.cookies) return { error: "Cookies are required" };
123
if (!opts?.cookies) {
124
opts.cookies = opts.extra?.cookies;
125
}
0 commit comments