javascript - RingCentral JS SDK - Refresh token is missing -


i using ringcentral js sdk (v. 3.1.1). use api server using password workflow function rcsdk.platform().login() (from doc here).

i using api send sms now.

everything working fine until yesterday. when had send sms, got error refresh token missing.

i aware of the refresh function in sdk. line 392 seems 1 throwing error. don't know why, since using correct username, password , on.

sending sms vital part of user workflow, missing here?

the documentation said "the sdk takes care of token lifecycle. refresh tokens automatically. ..."

do handle refresh token manually? did check if has valid token calling this:

rcsdk.platform().auth().accesstokenvalid(); // returns boolean 

you can implement following code , print log see if refresh token failed how.

platform.on(platform.events.refresherror, function(e){     // something, open login page }); 

Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -