Hello John,
What I do to create Login module with Polymer:
- Create login module to put username & password and send them to the API via iron-ajax to get a token
- And then save the token with iron-localstorage
- If the token is already in iron-localstorage, you can control the logic of user logged
- Just that. This is right logic or bad for security reason? I still find it, maybe anyone here can give a opinion about this?
I hope can a bit help.
Taufik