File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const subscribedTopics = {};
54
54
const propertyCallback = { } ;
55
55
const arduinoCloudPort = 8443 ;
56
56
const arduinoCloudHost = 'wss.iot.arduino.cc' ;
57
- const arduinoAuthURL = 'https://auth .arduino.cc' ;
57
+ const arduinoAuthURL = 'https://api2 .arduino.cc' ;
58
58
59
59
const getUserId = ( apiUrl , token ) => fetch ( apiUrl , {
60
60
method : 'get' ,
@@ -102,7 +102,7 @@ const connect = options => new Promise((resolve, reject) => {
102
102
return reject ( new Error ( 'no apiUrl parameter is provided' ) ) ;
103
103
}
104
104
105
- return getUserId ( `${ opts . apiUrl } /v1/users/byID/me` , options . token ) . then ( ( res ) => {
105
+ return getUserId ( `${ opts . apiUrl } /users/ v1/users/byID/me` , options . token ) . then ( ( res ) => {
106
106
const clientID = `${ res . id } :${ new Date ( ) . getTime ( ) } ` ;
107
107
const client = new Paho . Client ( opts . host , opts . port , clientID ) ;
108
108
client . topics = { } ;
You can’t perform that action at this time.
0 commit comments