MCPcopy Create free account
hub / github.com/experdot/pointer / logout

Function logout

src/renderer/src/services/accountService.ts:130–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129// 退出登录(切换到默认账户)
130export async function logout(): Promise<void> {
131 const defaultId = getDefaultAccountId()
132 const { account } = stores
133
134 if (account.currentAccountId !== defaultId) {
135 await switchAccount(defaultId)
136 }
137}

Callers 1

handleLogoutFunction · 0.90

Calls 2

getDefaultAccountIdFunction · 0.90
switchAccountFunction · 0.85

Tested by

no test coverage detected