Skip to content

Commit

Permalink
chore: update README for authenticated consent
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed May 31, 2024
1 parent ef2fe3c commit 6d4c2c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ export default function App() {
)
```
## Implementing authenticated consent
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.
In order to use the authenticated consent all you need to do is replace `.loadMessage()` with `.loadMessage({ authId: "JohnDoe"}))`.
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.
## Complete App examples
Complete app examples for iOS and Android can be found in the [`/example`](/example/) folder of the SDK.
Expand Down

0 comments on commit 6d4c2c2

Please sign in to comment.