Skip to content

Commit a95b3a7

Browse files
committed
Fix Microsoft Login clearing all accounts.
1 parent 18dad9e commit a95b3a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/screens/chat/sessionBuilder.ts

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const getSession = async (
5454
const accessToken = await authenticateWithXsts(xstsToken, xuh)
5555
session = { accessToken }
5656
setAccounts({
57+
...accounts,
5758
[activeAccount]: {
5859
...account,
5960
accessToken,
@@ -70,6 +71,7 @@ export const getSession = async (
7071
)
7172
session = { accessToken }
7273
setAccounts({
74+
...accounts,
7375
[activeAccount]: { ...account, accessToken, clientToken }
7476
})
7577
}

0 commit comments

Comments
 (0)