Checking whether a user has a registered alias #95

Open
opened 2025-07-07 09:10:49 +02:00 by Alfred-mk · 1 comment
Member

Currently, the alias API allows a user to only have one alias

If a user has an existing alias, the USSD should call the updateAlias endpoint and only call the registerAlias endpoint if an alias doesn't exist.

The key being used to check the existence of an alias is DATA_SUGGESTED_ALIAS. However, some users have existing aliases under DATA_ACCOUNT_ALIAS.

The handler needs to check both keys to prevent any edge-case errors

Currently, the alias API allows a user to only have one alias If a user has an existing alias, the USSD should call the updateAlias endpoint and only call the registerAlias endpoint if an alias doesn't exist. The key being used to check the existence of an alias is DATA_SUGGESTED_ALIAS. However, some users have existing aliases under DATA_ACCOUNT_ALIAS. The handler needs to check both keys to prevent any edge-case errors
Alfred-mk added the
Kind/Enhancement
Status
Blocked
Priority
High
ussd/user-reported
labels 2025-07-07 09:10:49 +02:00
Alfred-mk self-assigned this 2025-07-07 09:11:00 +02:00
Author
Member

Resolved by having a new alias flow under PR #96

Resolved by having a new alias flow under PR https://git.grassecon.net/grassrootseconomics/sarafu-vise/pulls/96
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#95
No description provided.