Module: @@actions/solid/auth

Handles Solid client authentication
Source:

Methods

(static) getSession() → {Promise.<{valid: boolean, session: *}>}

Returns the current user's session.
Source:
Returns:
Type
Promise.<{valid: boolean, session: *}>

(static) getSessionOrLogin() → {Promise.<*>}

Logs the user in, if they aren't yet, then returns the user's session.
Source:
Returns:
Type
Promise.<*>

(static) isLoggedIn() → {Promise.<{valid: boolean, session: *}>}

Returns whether the user is logged in or not.
Source:
Returns:
Type
Promise.<{valid: boolean, session: *}>

(static) loginToSolid() → {Promise.<void>}

Prompts the user to log in to their Solid pod and fires appropriate lifecycle function on login.
Source:
Returns:
Type
Promise.<void>

(static) logoutSolid() → {Promise.<void>}

Logs the user out of Solid pod.
Source:
Returns:
Type
Promise.<void>

(async, inner) login() → {Promise.<*>}

Opens up a new login popup and waits for the user to login. Sets user's session accordingly.
Source:
Returns:
Type
Promise.<*>