Implement the mechanics of fxa login on android, but don't show ui fo… (#1000)
* Implement the mechanics of fxa login on android, but don't show ui for it yet. Also, scopedKeys are not yet implemented. * Hopefully fix the package-lock conflict? * WIP on android scoped keys * Finish implementing login. * created android/user.js to handle android logins
This commit is contained in:
parent
ffac4ae5b1
commit
cab6f1bafb
17 changed files with 592 additions and 304 deletions
|
@ -1,6 +1,6 @@
|
|||
const genmap = require('../build/generate_asset_map');
|
||||
const isServer = typeof genmap === 'function';
|
||||
const prefix = '';
|
||||
let prefix = '';
|
||||
let manifest = {};
|
||||
try {
|
||||
//eslint-disable-next-line node/no-missing-require
|
||||
|
@ -15,6 +15,10 @@ function getAsset(name) {
|
|||
return prefix + assets[name];
|
||||
}
|
||||
|
||||
function setPrefix(name) {
|
||||
prefix = name;
|
||||
}
|
||||
|
||||
function getMatches(match) {
|
||||
return Object.keys(assets)
|
||||
.filter(k => match.test(k))
|
||||
|
@ -22,6 +26,7 @@ function getMatches(match) {
|
|||
}
|
||||
|
||||
const instance = {
|
||||
setPrefix: setPrefix,
|
||||
get: getAsset,
|
||||
match: getMatches,
|
||||
setMiddleware: function(middleware) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue