Skip to main content

open_roblox_login

Function open_roblox_login 

Source
pub fn open_roblox_login<V, S, N>(
    app: &AppHandle,
    validate: V,
    store: S,
    notify: N,
) -> Result<(), LoginError>
where V: Fn(&RobloxCookie) -> Result<AccountIdentity, LoginError> + Send + Sync + 'static, S: Fn(&AccountIdentity, &RobloxCookie) -> Result<(), LoginError> + Send + Sync + 'static, N: Fn(LoginNotice) + Send + Sync + 'static,
Expand description

Opens an isolated, incognito Roblox sign-in window.

After each page load the window’s cookies are polled for the session cookie. When found, the session is validated, the window’s browsing data is cleared, the session is stored, and notify receives the outcome. Navigation is limited to HTTPS Roblox hosts, and new windows are blocked.