{"repo":"SallaApp/passport-strategy","free":true,"listed":false,"github":"https://github.com/SallaApp/passport-strategy","clone":"git clone https://github.com/SallaApp/passport-strategy.git","description":"Passport strategy is used with Salla as an authentication middleware module using the OAuth 2.0 API.","language":"JavaScript","stars":15,"topics":["oauth","salla","platform","ecommerce","oauth2","node","passport"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Salla OAuth 2.0 - Passport Strategy Passport strategy is used with Salla as an authentication middleware module using the OAuth 2.0 API. Explore our blogs » Report Bug · Request Feature · &lt;/Salla Developers&gt; Overview This module enables you to implement the authentication process using Salla within your Nodejs applications. By plugging it into Passport, Salla authentication can be quickly and unobtrusively implemented into any application or framework that supports connect-style middleware, including Express.js, by plugging it into Passport. For more information about Salla's OAuth 2.0 implementation, check our Web API Authorization Guide. OAuth Workflow Installation $ npm install @salla.sa/passport-strategy ( back to top ) Usage Configure Strategy Salla authentication strategy authenticates users using a Salla Merchant Account and OAuth 2.0 tokens. This 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. ( back to top ) Refreshing a Token Refresh tokens can be received by calling SallaAPI.refreshToken() function, which returns a Promies. Examples For a complete, working example, refer to the login example, you can get your keys on Salla Partners My Apps. Getting All Orders from the store Fetching Resources dynamic url ( back to top ) Tests $ npm install --dev $ npm test ( back to top ) Support The team is always here to help you. Happen to face a","default_branch":null,"files":null,"tree":[],"storefront":"/r/SallaApp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SallaApp/passport-strategy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}