add fxa_required option

This commit is contained in:
Danny Coates 2020-07-24 10:06:27 -07:00
parent 9891d1f0ba
commit 17057e725d
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 20 additions and 3 deletions

View file

@ -94,6 +94,10 @@ export default class User {
: this.limits.ANON.MAX_DOWNLOADS;
}
get loginRequired() {
return this.authConfig.fxa_required;
}
async metricId() {
return this.loggedIn ? hashId(this.info.uid) : undefined;
}