nrikiji / cordova-line-login-plugin

A cordova plugin for easy implementation of LINE login using LineSDK.
Apache License 2.0
21 stars 23 forks source link

"Code" field is needed for a backend server #37

Open pipoa opened 5 years ago

pipoa commented 5 years ago

For backend server used, "code" field is very important. Reference to Line API document https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#receiving-the-authorization-code

Is there a way to get this field in login function? Recently, we need to get email scope from back end side, because front end is not trustable. Email can be forged even though access_token is correct from front end. With a fake email, one can take over any account he wants.