Ios swift couchbase login using curl

During mobile login, is the below curl command secured enough to be used in Swift3 (iOS) when authenticating user? I’m planning to use Alamofire to execute this.

curl -X POST ‘’ -H “Content-type: application/json” -d ‘{“name”:“usernameHere”,“password”:“pwHere”}’

-------- result for authorised user --------
“channels”: {

-------- result for unauthorised user --------
“reason”:“Invalid login”

Yes that looks good. You might want to enable SSL on Sync Gateway to secure the data “on the wire”. See the configuring SSL guide.