Skip to main content

Module login

Module login 

Source
Expand description

Isolated Roblox login webview and secret handoff.

Structsยง

AccountIdentity
The Roblox user a session belongs to.
LoginRuntime ๐Ÿ”’
State shared by one sign-in windowโ€™s callbacks.
RobloxCookie
A session cookie read from the sign-in webview. Its memory is zeroed on drop.

Enumsยง

LoginError
Why a sign-in failed. Displays as a user-facing message.
LoginNotice
The outcome of a sign-in, delivered once.
LoginPhase
Progress of a sign-in window.

Constantsยง

LOGIN_URL
Page the sign-in webview opens.
LOGIN_WINDOW_LABEL
Window label of the Roblox sign-in webview.
PROFILE_WINDOW_LABEL
Window label of the signed-in Roblox profile webview.
SECURITY_COOKIE_NAME ๐Ÿ”’
Name of the Roblox session cookie.

Functionsยง

fail_login ๐Ÿ”’
Marks the sign-in failed, clears browsing data, closes the window, and reports the error.
finish_login ๐Ÿ”’
Validates and stores the session, clearing browsing data before storing it and closing the window afterwards.
is_allowed_roblox_navigation
Allows navigation only to roblox.com and its subdomains over HTTPS.
is_roblox_security_cookie
Matches the secure, HTTP-only .ROBLOSECURITY cookie on a Roblox domain.
open_roblox_login
Opens an isolated, incognito Roblox sign-in window.
open_roblox_profile
Opens an isolated, incognito roblox.com window signed in with session, on the profile of user_id, for actions Roblox only allows after a verification check it shows itself. An open profile window is replaced. The session cookie is HTTP-only, so the page canโ€™t read it, and the incognito data is discarded when the window closes. Navigation is limited to HTTPS Roblox hosts, and new windows are blocked.
read_security_cookie ๐Ÿ”’
Reads the session cookie from the window, if itโ€™s set.
schedule_cookie_check ๐Ÿ”’
Checks for the session cookie on a background thread, retrying every second until itโ€™s found, the window closes, or the sign-in fails.

Type Aliasesยง

Notify ๐Ÿ”’
Receives the sign-in outcome.
StoreSession ๐Ÿ”’
Stores a validated session.
ValidateSession ๐Ÿ”’
Checks a session with Roblox and returns its user.