
The sample
This example is straight-forward:- We call the Resource Owner endpoint on Auth0 with device credentials
- Get a token back
- We use the token to call an API

- This is 99% compatible with Node (the only device specific module.is
tessel
that we only use to make sure all SSL calls happen with adequate time references. - The
request
function, is a simple wrapper onhttp
module functions. Therequest
module doesn’t currently work in Tessel.
Tessel Setup
- Run
tessel update
to make sure you install the latest firmware with SSL support. - You will obviously need connection to the web. You can set up WiFi with the
tessel wifi
command. - Always send credentials (such as
username
/password
) over secured networks.