Skip to main content

AccountLockedExtensions

API Docs


Type Alias: AccountLockedExtensions

AccountLockedExtensions = object

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

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:52


retryAfter

retryAfter: string

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