docs(api): remove incorrect note on CreateInviteCode endpoint (#12073)

# Which Problems Are Solved

The CreateInviteCode endpoint wrongly stated that a new code can only be
issued if the old had expired or was invalidated due to too many
attempts, which is not true.

# How the Problems Are Solved

Removed the note from the proto / API documentation.

# Additional Changes

None

# Additional Context

- noticed by a customer
- requires backport to v4.x

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Matías Racedo <[email protected]>
This commit is contained in:
Livio Spring
2026-04-16 17:04:47 -03:00
committed by GitHub
co-authored by Copilot Matías Racedo
parent 14acc60edd
commit c0f7bfffdb
+1 -2
View File
@@ -1784,9 +1784,8 @@ service UserService {
// Create an invite code for a user
//
// Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods.
// If an invite code has been created previously, it's url template and application name will be used as defaults for the new code.
// If an invite code has been created previously, its URL template and application name will be used as defaults for the new code.
// The new code will overwrite the previous one and make it invalid.
// Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification.
rpc CreateInviteCode (CreateInviteCodeRequest) returns (CreateInviteCodeResponse) {
option (google.api.http) = {
post: "/v2/users/{user_id}/invite_code"