Function: logOut()
function logOut(context, siteUrl): Promise<boolean>;
Defined in: core/session.ts:150
Logs the person out of Moodle through the user menu's logout link (it carries the sesskey; without one Moodle asks to confirm, and the confirmation is accepted). Returns false when nobody was logged in. Only Moodle's session ends: a single sign-on provider may keep its own.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
Returns
Promise<boolean>