You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
@@ -855,7 +864,7 @@ Failing requests may be due to the following errors:
855
864
856
865
Not HAWK-authenticated.
857
866
858
-
This is an endpoint that is used to verify tokens and recovery emails for an account. If a valid token code is detected, the account email and tokens will be set to verified. If a valid email code is detected, the email will be marked as verified.
867
+
This is an endpoint that is used to verify tokens and additional emails for an account. If a valid token code is detected, the account email and tokens will be set to verified. If a valid email code is detected, the email will be marked as verified.
859
868
860
869
The verification code will be a random token, delivered in the fragment portion of a URL sent to the user's email address. The URL will lead to a page that extracts the code from the URL fragment, and performs a POST to `/recovery_email/verify_code`. The link can be clicked from any browser, not just the one being attached to the Firefox account.
861
870
@@ -865,6 +874,9 @@ ___Parameters___
865
874
866
875
* uid - account identifier
867
876
* code - the verification code (recovery email or token verification id)
877
+
* service - the service issuing request
878
+
* reminder - (optional) the reminder email associated with code
879
+
* type - (optional) the type of code being verified
868
880
869
881
```sh
870
882
curl -v \
@@ -896,6 +908,123 @@ Failing requests may be due to the following errors:
896
908
* status code 411, errno 112: content-length header was not provided
897
909
* status code 413, errno 113: request body too large
898
910
911
+
## GET /v1/recovery_emails
912
+
913
+
This endpoint is used to get all the emails associated with the logged in user. The primary email address, currently, will always be the email address on the accounts table.
Successful requests will produce a "200 OK" response with JSON body:
929
+
930
+
```json
931
+
[
932
+
{
933
+
"isPrimary":true,
934
+
"verified":true,
935
+
"email":"primary@email.com"
936
+
},
937
+
{
938
+
"isPrimary":false,
939
+
"verified":false,
940
+
"email":"anotherone@email.com"
941
+
}
942
+
]
943
+
```
944
+
945
+
## POST /v1/recovery_email
946
+
947
+
This endpoint is used add a secondary email address to the logged in user account. The address is created `unverified` and marked as not the primary address.
0 commit comments