How does iOS cooperate with Nodejs to implement login authentication?

  node.js, question

Nodejs server uses express and passport to implement login verification on the web side
Can you tell me how to implement it on iOS side (fully implemented with native oc)?
Thank you! ! ! ! !

Ios provides user name and password
Server-side authentication
If failure returns failure
If the successful server obtains the user ID uid:012345, a JWT is generated according to a private key and the validity period and then sent to the user

Users can log in when they get JWToken ~

Look at this
http://www.tuicool.com/articles/uuAzAbU