chore: Add support for conversation_id in SSO params (#5228)

This commit is contained in:
Pranav Raj S
2022-08-09 00:13:06 +05:30
committed by GitHub
parent 4b1bb65c92
commit 27a9806817
5 changed files with 54 additions and 14 deletions

View File

@@ -84,12 +84,16 @@ export const getters = {
// actions
export const actions = {
login(_, { ssoAccountId, ...credentials }) {
login(_, { ssoAccountId, ssoConversationId, ...credentials }) {
return new Promise((resolve, reject) => {
authAPI
.login(credentials)
.then(response => {
window.location = getLoginRedirectURL(ssoAccountId, response.data);
window.location = getLoginRedirectURL({
ssoAccountId,
ssoConversationId,
user: response.data,
});
resolve();
})
.catch(error => {