Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to support non-interactive login #69

Open
mykone opened this issue Apr 6, 2018 · 1 comment
Open

Any plans to support non-interactive login #69

mykone opened this issue Apr 6, 2018 · 1 comment

Comments

@mykone
Copy link

mykone commented Apr 6, 2018

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

@lumayara
Copy link

lumayara commented Apr 18, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants