nativescript-oauth icon indicating copy to clipboard operation
nativescript-oauth copied to clipboard

Any plans to support non-interactive login

Open mykone opened this issue 7 years ago • 1 comments

Hello, are there any plans to support non-interactive login, sending login and password automatically?

  const credentials = {
      email: '<email>',
      password: '<password>'
  };

  tnsOAuthModule.login(credentials)
       .then(()=>{
         callback('logged in');
       })
       .catch((er)=>{
         callback('Error Loggin in');
       });

I am trying to build an app which consumes Microsoft Office365 Calendar API, and I want the app to start automatically, login in the background, and list the calendar events.

If not possible, are there any alternatives. I tried simple-oauth2, but it doesn't seem supported by Nativescript.

Thanks

mykone avatar Apr 06 '18 00:04 mykone

I have a similar scenario where I want the user to login only once and not anymore but I still need a token to access the user's stuff in office 365... I have been looking for a solution but have not found so far.. I am using refresh tokens but still is not the ideal scenario. Any insights? Thank you!

lumayara avatar Apr 18 '18 17:04 lumayara