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
Copy file name to clipboardExpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,13 @@ export default function App() {
158
158
)
159
159
```
160
160
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
+
161
168
## Complete App examples
162
169
163
170
Complete app examples for iOS and Android can be found in the [`/example`](/example/) folder of the SDK.
0 commit comments