cooperlyt / keycloak-phone-provider

A Keycloak provider for phone and SMS
MIT License
252 stars 147 forks source link

Inconsistent Phone Number Format Causing an issue with the OTP Verification #91

Open Njoodd opened 6 months ago

Njoodd commented 6 months ago

I am using the dummy provider.

When I call the first API (the GET method), the phoneNumber gets formatted as below before being saved in the DB: +9665XXXXXXXX --> +966 XX XXX XXX

Then, when I call the second API (the POST method), the phoneNumber does not get formatted, therefore, inside the onGoingProcess method when it tries to query for the phoneNumber in the DB it cannot find it due to the format difference.