constructor(client_ID,client_secret)asynccreateUser(username,password)//create a new userasynclogin(username,password)// login a user. return a User objectasyncrefresh(refresh_token)// use a refresh_token to log a userasyncverify(access_token)// verify the authenticity of a a tokenverifyProvidedSource(access_token)// verify if the token was provided by you. A valid token may be provided by someone else, use this to ensure the token doesnt come from unexpected source.getInfoFromToken(access_token)// return the info loaded in the token
user
methods
constructor(obj)getAccessToken()// return the user access tokengetInfoUser()// return the user infogetRefreshToken()// return the user refresh tokenasyncrefreshAccessToken()// refresh the access tokenasyncchangePassword(old_password,new_password)// change the user password