In Cognito, The user will sign up using a phone number & OTP or email and password. After this, the user is authenticated. During the authentication process, we will use lambda triggers to register a user, verify the user and then attach the specific policy to them.