Web-View login via Yii 2.0

As the title stated, currently my site only operate with cookies. But now I’m trying to incorporate my site’s login as the login page for my mobile application which requires me to send JWT as well.

How should I approach this problem? My ideas currently:

  • Add parameter “jwt” to action
  • Change to form submission http request to accept: application/json

Check https://www.yiiframework.com/extension/bizley/jwt