feat: Configure Chatwoot & Analytics for SaaS app (#2975)

* feat: Add Chatwoot support inside Chatwoot SaaS
* Fix identity issues with Chatwoot
This commit is contained in:
Pranav Raj S
2021-09-07 23:11:01 +05:30
committed by GitHub
parent 8de4ce0037
commit 4759730022
12 changed files with 125 additions and 39 deletions

View File

@@ -81,7 +81,9 @@ export const actions = {
async validityCheck(context) {
try {
const response = await authAPI.validityCheck();
setUser(response.data.payload.data, getHeaderExpiry(response));
setUser(response.data.payload.data, getHeaderExpiry(response), {
setUserInSDK: true,
});
context.commit(types.default.SET_CURRENT_USER);
} catch (error) {
if (error?.response?.status === 401) {