I wrote up an example of using Particle API JS and prompting for username and password in a web form and optionally storing only a temporary access token only in a browser cookie. It uses jquery so it might be a little more than you’re looking for, but it might have some tricks that you might find helpful. It runs entirely in the browser, no server code required.
rickkas7
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| [SOLVED] How to hide access token and device ID in HTML DOC | 5 | 5715 | January 1, 2017 | |
| Particle.login from web page using device ID / access token | 5 | 1150 | February 8, 2017 | |
| Web Page Sample Code using Particle API JS | 3 | 5539 | June 8, 2016 | |
| Using customer input for device ID | 10 | 1507 | March 6, 2016 | |
| Calling the Particle API from a web browser | 2 | 1025 | April 1, 2021 |