I am trying to use forcealiasatribute by which user can login through preferred username.
Email is the only attribute required for sign up but in Amplify.Auth.SignUp() it is asking for username.But I want that username should be a random "sub"(example:"151af027-eede-423f-b17e-3d94908717s2").
Now(This is happening):
- Username: entered through Amplify.Auth.SignUp() function and it must be unique.(I want this should be a random string like below sub and not entered by user)
- Sub: 151af027-eede-423f-b17e-3d94908717s2 it is also unique.
- Preferred username: updated through attribute update function it is also unique.
I WANT THIS:
- Username:151af027-eede-423f-b17e-3d94908717s2
- Preferred username: updated through attribute update function(it should be unique)