()
| 108 | } |
| 109 | |
| 110 | export async function logout () { |
| 111 | const result = await postAPI('logout').finally(() => { |
| 112 | sourceToken.cancel() |
| 113 | message.destroy() |
| 114 | notification.destroy() |
| 115 | }) |
| 116 | return result |
| 117 | } |
| 118 | |
| 119 | export function oauthlogin (arg) { |
| 120 | if (!sourceToken.checkExistSource()) { |