Passport-TiendaNube
Passport strategy for authenticating with TiendaNube using the OAuth 2.0 API.
Learn more about TiendaNube OAuth schema here.
Installation
$ npm install passport-tiendanube
Configuration
The TiendaNube authentication strategy authenticates users using a TiendaNube
account and OAuth 2.0 tokens. The strategy requires a verify
callback, which
accepts these credentials and calls done
providing a user, as well as
options
specifying a client ID, client secret, and callback URL.
var TiendaNubeStrategy = Strategy; passport; passport; passport;
Usage
Use passport.authorize()
, specifying the 'tiendanube'
strategy, to
authenticate requests.
For example, as route middleware in an Express application:
app; app; app; { if req return ; ; res;};
The properties available in the user
object are:
- provider --> tiendanube
- name
- original_domain
- main_currency
- accessToken