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
| Opting-in or out |`UserExperior.optOut()`<br> `UserExperior.optIn()`<br> `UserExperior.getOptOutStatus()`|`DevRev.stopAllMonitoring(successCallback, errorCallback)`<br> `DevRev.resumeAllMonitoring(successCallback, errorCallback)`|
The verified identification method identifies users with a unique identifier and verifies their identity with the DevRev backend.
102
+
The verified identification method is used to identify users with an identifier unique to your system within the DevRev platform. The verification is done through a token exchange process between you and the DevRev backend.
103
+
104
+
The steps to identify a verified user are as follows:
105
+
1. Generate an AAT for your system (preferably through your backend).
106
+
2. Exchange your AAT for a session token for each user of your system.
107
+
3. Pass the user identifier and the exchanged session token to the `DevRev.identifyVerifiedUser(userID, sessionToken, successCallback, errorCallback)` method.
108
+
109
+
> [!CAUTION]
110
+
> For security reasons we **strongly recommend** that the token exchange is executed on your backend to prevent exposing your application access token (AAT).
111
+
112
+
##### Generate an AAT
113
+
1. Open the DevRev web app at [https://app.devrev.ai](https://app.devrev.ai) and go to the **Settings** page.
114
+
2. Open the **PLuG Tokens** page.
115
+
3. Under the **Application access tokens** panel, click **New token** and copy the token that's displayed.
116
+
117
+
> [!IMPORTANT]
118
+
> Ensure that you copy the generated application access token, as you cannot view it again.
119
+
120
+
##### Exchange your AAT for a session token
121
+
In order to proceed with identifying the user, you need to exchange your AAT for a session token. This step will help you identify a user of your own system within the DevRev platform.
122
+
123
+
Here is a simple example of an API request to the DevRev backend to exchange your AAT for a session token:
124
+
> [!CAUTION]
125
+
> Make sure that you replace the `<AAT>` and `<YOUR_USER_ID>` with the actual values.
The response of the API call will contain a session token that you can use with the verified identification method in your app.
140
+
141
+
> [!NOTE]
142
+
> As a good practice, **your** app should retrieve the exchanged session token from **your** backend at app launch or any relevant app lifecycle event.
143
+
144
+
##### Identifying the verified user
145
+
Pass the user identifier and the exchanged session token to the verified identification method:
0 commit comments