LearnersGuild / idm

identity management service
MIT License
2 stars 24 forks source link

Store user phone numbers as E.164-formatted strings #110

Closed heyheyjp closed 8 years ago

heyheyjp commented 8 years ago

This will be important for when we need to begin supporting players in other countries. It would also make it easier to integrate with phone-related APIs if we're ever interested in doing so (e.g. tel: protocol support, third party call and messaging services, etc).

Instead of storing phone number values as large integers (e.g. 5551234567) and assuming the country is US, we should be storing them as strings in E.164 format (e.g. '+15551234567').

Resources: