{"repo":"schibsted/account-sdk-browser","free":true,"listed":false,"github":"https://github.com/schibsted/account-sdk-browser","clone":"git clone https://github.com/schibsted/account-sdk-browser.git","description":"Schibsted Account SDK for browsers","language":"JavaScript","stars":15,"topics":["javascript","browser","oauth2","oidc","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Schibsted account SDK for browsers Welcome! This is the home of the Schibsted account JavaScript SDK for use by any website that wishes to use Schibsted account to sign up and log in users. Use it to generate URLs for your site's \"Log in\" button, query the logged-in status of your users, and to check whether they have access to products and subscriptions, etc. Getting started This sdk mainly communicates with a service named Session Service, which is available on brand domains (i.e. id.vg.no) to avoid Third-Party Cookie request. Since browsers started to block Third-Party Cookies, your top domain from local machine needs to match your Session Service top domain. Otherwise, the Session Service cookie will be a third-party cookie and will not be sent with a XHR request. The same applies to cross scheme requests. The Session Service is hosted on https and therefore you need to run your site with HTTPS locally. For example if your pre domain is pre.sdk-example.com, and it uses id.pre.sdk-example.com Session Service domain, your local domain should be local.sdk-example.com. 1. Do npm install --save @schibsted/account-sdk-browser 1. Use this library as you would any other npm module: import { Identity, Monetization, Payment } from '@schibsted/account-sdk-browser' With CommonJS it is possible to require the modules Identity, Monetization and Payment by appending /identity , /monetization' or /payment' . 1. Build your site as you prefer. This library uses modern JavaScript syntax (in","default_branch":null,"files":null,"tree":[],"storefront":"/r/schibsted","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/schibsted/account-sdk-browser/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."}