> ## Documentation Index
> Fetch the complete documentation index at: https://supastack.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For the full documentation corpus in one file, fetch: https://supastack.dev/llms-full.txt

# 登入與會話

在原生視窗內使用 Web 應用的賬戶和會話規則，包括返回應用的深連結。

## 安裝與配置

桌面外殼不實現自己的登入。它在系統 WebView 中開啟 Web 應用，登入發生在該源上，會話和工作區規則與瀏覽器一致。WebView 配置檔案在多次啟動之間把 Cookie 和本地儲存保留在應用資料目錄中。

`supastack://` 深連結方案將連結映射回同源應用路由。邀請、密碼恢復和其他連結必須解析到應用提供的路徑；指向其他源的連結會被忽略，而不會在特權視窗中開啟。生產構建必須允許伺服器發放的方案。


## 實現流程

登入、退出應用並重新開啟：會話應無需第二次登入即可恢復。退出登入並重復，確認會話已消失。測試過期會話和邀請連結，然後清除應用資料目錄以復現首次啟動。


## 驗證與排障

認證行為與 Web 應用一致。


如果你想繼續完成設定，可以閱讀《[測試桌面外殼](https://supastack.dev/zh-tw/docs/desktop/testing.md)》。


## 下一篇

[測試桌面外殼](https://supastack.dev/zh-tw/docs/desktop/testing.md)
