Skip to main content

AccountLockedExtensions

API Docs


Type Alias: AccountLockedExtensions

AccountLockedExtensions = object

Defined in: src/utilities/TalawaGraphQLError.ts:54

When the user's account is temporarily locked due to too many failed login attempts. The retryAfter field indicates when the account will be unlocked (ISO 8601 timestamp).

Example​

throw new TalawaGraphQLError({
extensions: {
code: "account_locked",
retryAfter: new Date(Date.now() + 900000).toISOString(),
},
});

Properties​

code​

code: "account_locked"

Defined in: src/utilities/TalawaGraphQLError.ts:55


retryAfter​

retryAfter: string

Defined in: src/utilities/TalawaGraphQLError.ts:56