Skip to content

Commit 074e057

Browse files
waldyriousAmericas
authored andcommitted
Document working auth methods for TOTP and PATs
1 parent 3867ab0 commit 074e057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_authentication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ To list Personal Access Tokens you may use the following endpoint:
187187
```bash
188188
curl https://api.uphold.com/v0/me/tokens \
189189
-X POST \
190-
-H "Authorization: Bearer <token>" \
191190
-H "Content-Type: application/json" \
192191
-H "OTP-Method-Id: <Method-Id>" \
193192
-H "OTP-Token: <OTP-Token>" \
193+
-u <email>:<password> \
194194
-d '{ "description": "My command line script" }'
195195
```
196196

_totp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The following section documents how the Authentication Methods API works to prov
77

88
```bash
99
curl https://api.uphold.com/v0/me/authentication_methods \
10-
-H "Authorization: Bearer <token>"
10+
-u <email>:<password>
1111
```
1212

1313
> The above command returns the following JSON:

0 commit comments

Comments
 (0)