foxford / account Goto Github PK
View Code? Open in Web Editor NEWAccount managment library
License: MIT License
Account managment library
License: MIT License
There is no reason to have myAccountId property since we never update it. The value is a constant.
The only methods that are currently used:
These methods aren't used and may be changed in the future:
It would be better to remove them before the next major release, and adding new adjusted versions as we go.
There is no need to fetch account data on refresh requests since we already have the account id.
AccountId is composite type that consists from:
Consider passing both to constructor of Account.
String representation is "{accountLabel}.{audience}".
For instance, accountLabel="12345" and audience="example.org" become "12345.example.org".
Note that for requests to account's profile endpoint both accountId ("12345.example.org") and accountLabel ("12345") may make sense (for multi-audience providers and single-audience providers)
Note that it imply changing keys for objects in underlying storage (localStorage).
Service Workers is now shipped by all major browser vendors
https://caniuse.com/#search=service%20workers
https://jakearchibald.github.io/isserviceworkerready/index.html#moar
It may be used to refresh the access token of the current user.
Subj
Consider simplifying implementation of signIn()
by returning a promise once before processing any of function arguments
Allow to customize provider endpoints:
authn_uri, authentication endpoint
with default value: ${this.base_uri}/authn
account_uri, account endpoint
with default value: ${this.base_uri}/accounts
FetchEvent is now shipped by all major browser vendors
https://jakearchibald.github.io/isserviceworkerready/#fetch-event
https://w3c.github.io/ServiceWorker/#fetchevent
It may be used to add "authorization" HTTP header with access token of the current user for specified list of URIs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.