ENUM

ChangeUsernameErrorCode

Possible error codes returned from a change username.

link GraphQL Schema definition

1enum ChangeUsernameErrorCode {
2
3# Sudo token expired, prompt the user to log in again.
4REAUTH_NEEDED
5
6# Too many attempts to update login.
7REQUESTS_THROTTLED
8
9# Login was changed recently (last 60 days).
10LOGIN_CHANGE_COOLDOWN
11
12# Login is not available.
13LOGIN_UNAVAILABLE
14
15# Login is too short.
16LOGIN_TOO_SHORT
17
18# Login is too long.
19LOGIN_TOO_LONG
20
21# Login contains characters that are not allowed.
22LOGIN_CONTAINS_INVALID_CHARACTERS
23
24# Login change requires a verified email.
25LOGIN_CHANGE_EMAIL_VERIFIED
26
27# Unrecognized error returned from the backend service.
28UNKNOWN_ERROR
29}