get_user
Get the authenticated user. Triggers a login prompt if the user is not authenticated.
Can be called inside __render__ or any registered function.
Pages render without the player navbar, so login/logout are driven from the
page's own HTML through the browser window.abstra API:
abstra.login()— send the user to the login screen (returns to the page).abstra.logout()— clear the session and reload the page logged out.abstra.logged()— returnstruewhen a user is logged in (synchronous).
Raises:
GetUserFailed: If no valid authentication is found (results in HTTP 401).
Example:
Return Value
"UserClaims"