Skip to content

Commit 810bcc3

Browse files
committed
FAQs: update example to include values
1 parent 68c25f0 commit 810bcc3

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

docs/getting-started/gs-faqs.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,29 @@ For details, see [Recommended Token Refresh Frequency](../ref-info/ref-tokens.md
109109

110110
You can use the `[email protected]` email address or the `+00000000002` phone number to test your token refresh workflow. Using either parameter value in a request always generates an identity response with a `refresh_token` that results in a logout response.
111111

112+
:::tip
113+
To arrive at the hashed and Base64-encoded values of any email address or phone number value, use the [UID2 Hashing Tool](gs-normalization-encoding.md#uid2-hashing-tool).
114+
:::
115+
112116
The procedure is a little different depending on whether or not you are using an SDK.
113117

114118
##### With SDK:
115119

116120
1. Depending on whether the DII is an email address or a phone number, send a [POST /token/generate](../endpoints/post-token-generate.md) request using one of the following values:
117-
- The `[email protected]` as the `email` value.
118-
- The hash of `[email protected]` as the `email_hash` value.
119-
- The `+00000000002` as the `phone` value.
120-
- The hash of `+00000000002` as the `phone_hash` value.
121+
- `email` value: `[email protected]`.
122+
- `email_hash` value: The hashed and Base64-encoded value for `[email protected]`, which is `NaNI8RU0bL1Jpp1jJLC5aJO/lchc6gGhgXQIAwJ7cV4=`.
123+
- `phone` value: `+00000000002`.
124+
- `phone_hash` value: The hashed and Base64-encoded value for `+00000000002`, which is `0VoxsIuk88qt7TnZaTC//C9Vur3pR1zBMIr1cJe7xjE=`.
121125

122126
2. Wait until the SDK's [background auto-refresh](../sdks/sdk-ref-javascript.md#background-token-auto-refresh) attempts to refresh the advertising token (this can take several hours) and observe the refresh attempt fail with the `OPTOUT` status. At this point the SDK also clears the first-party cookie.
123127

124128
##### Without SDK:
125129

126130
1. Depending on whether the <Link href="../ref-info/glossary-uid#gl-dii">DII</Link> is an email address or a phone number, send a [POST&nbsp;/token/generate](../endpoints/post-token-generate.md) request using one of the following values:
127-
- The `[email protected]` as the `email` value.
128-
- The hash of `[email protected]` as the `email_hash` value.
129-
- The `+00000000002` as the `phone` value.
130-
- The hash of `+00000000002` as the `phone_hash` value.
131+
- `email` value: `[email protected]`.
132+
- `email_hash` value: The hashed and Base64-encoded value for `[email protected]`, which is `NaNI8RU0bL1Jpp1jJLC5aJO/lchc6gGhgXQIAwJ7cV4=`.
133+
- `phone` value: `+00000000002`.
134+
- `phone_hash` value: The hashed and Base64-encoded value for `+00000000002`, which is `0VoxsIuk88qt7TnZaTC//C9Vur3pR1zBMIr1cJe7xjE=`.
131135

132136
2. Store the returned `refresh_token` for use in the following step.
133137

0 commit comments

Comments
 (0)