Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Ben Bangert ef2d33a38a
refactor(auth): convert account to TS and class
Because:

* New routes and some account cleanup is needed for allowing a new
  account with no password. This requires multiple re-usable functions
  to be extracted from the existing create account handler.

This commit:

* Converts the account.js file to TypeScript and refactors the handlers
  into a class to make room for the new account creation route.

Ref #8735
2021-05-28 07:29:36 -07:00
Ben Bangert 553bb238df
feat(event-broker): migrate to NestJS
Because:

* We are using NestJS for application architecture on new projects.

This commit:

* Moves the event-broker to a NestJS architecture.

Closes #6238
2020-08-31 12:59:54 -07:00
Danny Coates 7358a3cae5
feat(auth-client): replace fxa-js-client with fxa-auth-client
- We have two clients for the auth-server API, one in `content-server/app/scripts/lib/auth` and `fxa-js-client`. The content-server one was meant to replace fxa-js-client but I didn't finish the work to get it running on nodejs.

- Extracts the content-server implementation into `fxa-auth-client`
- Wraps the implementation with shims to work with nodejs in `server.ts`
- Updates references to fxa-js-client to use fxa-auth-client
- Removes fxa-js-client
2020-07-21 09:08:35 -07:00
Ben Bangert 17edcd473d
feat(gql-api): Add totp/recovery code mutations.
Because:

* The gql-api needs the ability to issue new recovery codes and
  update the users two-factor auth settings.

This commit:

* Add's two-factor auth and recovery code mutations.

Closes #5395
2020-06-08 14:17:46 -07:00
Ben Bangert adb832f79d
feat(gql-api): add attached client revoke
Because:

* We want to allow gql-api clients to revoke attached clients.

This commit:

* Add's the attachedClientDisconnect mutation.

Closes #5398
2020-06-08 10:41:27 -07:00
Ben Bangert 28abf66a2f
feat(graphql-api): add profile/email mutations
Because:

* We want to alter/update the profile avatar/displayname and modify
  email addresses in use.

This commit:

* Add's mutations to upload an avatar, change the display name, and
  manipulate email addresses in use.

Closes #5397, #5396
2020-05-28 10:17:15 -07:00
Danny Coates e565285b7e
refactor(tsconfig): consolidate common tsconfig options
To reduce duplication and encourage consistency in our
typescript builds this extracts most of the options
into two base configs, one for node and one for browsers.

Also, in order to better utilize workspaces the require
paths to fxa-shared and fxa-react were updated throughout.
2020-05-26 12:18:51 -07:00