Skip to content

Commit 6d4c2c2

Browse files
chore: update README for authenticated consent
1 parent ef2fe3c commit 6d4c2c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ export default function App() {
158158
)
159159
```
160160
161+
## Implementing authenticated consent
162+
In a nutshell, you provide an identifier for the current user (username, user id, uuid or any unique string) and we'll take care of associating the consent profile to that identifier.
163+
164+
In order to use the authenticated consent all you need to do is replace `.loadMessage()` with `.loadMessage({ authId: "JohnDoe"}))`.
165+
166+
If our APIs have a consent profile associated with that token `"JohnDoe"` the SDK will bring the consent profile from the server, overwriting whatever was stored in the device. If none is found, the session will be treated as a new user.
167+
161168
## Complete App examples
162169
163170
Complete app examples for iOS and Android can be found in the [`/example`](/example/) folder of the SDK.

0 commit comments

Comments
 (0)