Showing 18 of 18 total issues
AuthenticationManagementService
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class AuthenticationManagementService
extends AuthenticationManagementBase<AuthenticationManagementData, AllResultTypes, AuthenticationManagementServiceOptions> {
constructor (
app: Application,
options?: Partial<AuthenticationManagementServiceOptions>
Function makeClient
has 108 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
function makeClient (app: Application, _options?: Partial<ClientOptions>): AuthenticationManagementClient {
const options: ClientOptions = Object.assign({}, defaultOptions, _options);
const {
path
Function verifySignupSetPasswordWithShortToken
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: VerifySignupSetPasswordWithShortTokenOptions,
verifyShortToken: string,
identifyUser: IdentifyUser,
password: string,
notifierOptions: NotifierOptions = {},
Function identityChange
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: IdentityChangeOptions,
identifyUser: IdentifyUser,
password: string,
changesIdentifyUser: Record<string, unknown>,
notifierOptions: NotifierOptions = {},
Function eraseVerifyPropsSetPassword
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
user: User,
isVerified: boolean,
verifyChanges: VerifyChanges,
password: string,
skipPasswordHash: boolean,
Function passwordChange
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: PasswordChangeOptions,
identifyUser: IdentifyUser,
oldPassword: string,
password: string,
notifierOptions: NotifierOptions = {},
Function resetPassword
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: ResetPasswordOptions,
identifyUser: IdentifyUser,
tokens: Tokens,
password: string,
notifierOptions: NotifierOptions = {},
Function verifySignupSetPassword
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: VerifySignupSetPasswordOptions,
identifyUser: IdentifyUser,
tokens: Tokens,
password: string,
notifierOptions: NotifierOptions = {},
Function resetPwdWithShortToken
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
options: ResetPwdWithShortTokenOptions,
resetShortToken: string,
identifyUser: IdentifyUser,
password: string,
notifierOptions: NotifierOptions = {},
Avoid too many return
statements within this function. Open
Open
return await this._verifySignupSetPasswordLong({
password: data.value.password,
token: data.value.token,
notifierOptions: data.notifierOptions
}, params);
Avoid too many return
statements within this function. Open
Open
return await this._verifySignupSetPasswordShort({
password: data.value.password,
token: data.value.token,
user: data.value.user,
notifierOptions: data.notifierOptions
Avoid too many return
statements within this function. Open
Open
return await this._sendResetPassword({
user: data.value,
notifierOptions: data.notifierOptions
}, params);
Avoid too many return
statements within this function. Open
Open
return await this._passwordChange({
oldPassword: data.value.oldPassword,
password: data.value.password,
user: data.value.user,
notifierOptions: data.notifierOptions
Avoid too many return
statements within this function. Open
Open
return await this._resetPasswordLong({
password: data.value.password,
token: data.value.token,
notifierOptions: data.notifierOptions
}, params);
Avoid too many return
statements within this function. Open
Open
return await this._resetPasswordShort({
password: data.value.password,
token: data.value.token,
user: data.value.user,
notifierOptions: data.notifierOptions
Avoid too many return
statements within this function. Open
Open
return this.options;
Avoid too many return
statements within this function. Open
Open
return await this._identityChange({
changes: data.value.changes,
password: data.value.password,
user: data.value.user,
notifierOptions: data.notifierOptions
Avoid too many return
statements within this function. Open
Open
return await Promise.reject(err);