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

Support mobile authentication via OAuth1 #47

Closed
ekryski opened this Issue Feb 8, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@ekryski
Copy link
Member

ekryski commented Feb 8, 2016

Similar to #46.

@ekryski ekryski modified the milestone: 2.0 Mar 19, 2016

@ekryski ekryski added the Feature label Mar 26, 2016

@ekryski ekryski added the Backlog label May 21, 2016

@ekryski

This comment has been minimized.

Copy link
Member Author

ekryski commented Nov 21, 2016

This is now supported via feathers-authentication-oauth1.

Simply register your passport token strategy for the provider (ie. TwitterTokenStrategy) instead of the regular strategy (as outlined in the example on that repo) and then make your call from the client like so:

app.authenticate({
  strategy: 'twitter-token',
  access_token: yourTwitterAccessToken
})
.then(response => {
  // you are now authenticated

  console.log('Your Feathers access token', response.accessToken);
})
.catch(error => {
  // handle error
});

@ekryski ekryski closed this Nov 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.