Autional Autional
API Reference GitHub autional.com →

GET /auth/register/check-username

Check if a username is already taken before user registration to prevent bulk registration and conflicts. Supports GET and POST methods. References: OWASP ASVS V2.2.

Authentication None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
username query string No Username (GET method)

Request Body

Schema: dto.CheckUsernameRequest

FieldTypeRequiredExampleConstraintsDescription
username string Yes john_doe Username

Responses

StatusDescriptionSchema
200Username availability check resultdto.CheckUsernameResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CheckUsernameResponse

Check username availability result

FieldTypeRequiredExampleConstraintsDescription
available boolean No True Is available
username string No john_doe Username

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No