Why not let the experts handle your user management?
Facebook login is famous nowadays and Firebase provide authentication tools to create user by Facebook access token. Let’s see more here~! Firebase Authentication - Facebook iOS
Our perfectus application needs authentication method, firebase provides easy ways to handle Email/Password, Phone, Google, Facebook, and other authentication methods.