To authorize a user using a phone number, we need to call the new GC.AccountService().sendOTP(phoneNumber) method, where phoneNumber is the customer's phone number, after which the customer will receive an SMS with the OTP code (Note: use +1 for all phone numbers)

The next thing we need to do is execute new GC.AccountService().confirmOTP(phoneNumber, otpCode) where phoneNumber is the customer's phone number, otpCode is the SMS code to authenticate and authorize customer based on his profile rights

17021702

Did this page help you?