Use the chrome.login API to launch and exit user sessions.
Use the chrome.login API to launch and exit user sessions. * available since Chrome 77 * https://developer.chrome.com/extensions/login
(exit-current-session)
(exit-current-session data-for-next-login-attempt)
Exits the current session.
|data-for-next-login-attempt| - If set, stores data which can be read by fetchDataForNextLoginAttempt() from the login screen. If unset, any currently stored data will be cleared.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/login#method-exitCurrentSession.
Exits the current session. |data-for-next-login-attempt| - If set, stores data which can be read by fetchDataForNextLoginAttempt() from the login screen. If unset, any currently stored data will be cleared. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/login#method-exitCurrentSession.
(fetch-data-for-next-login-attempt)
Reads the dataForNextLoginAttempt set by exitCurrentSession(). Clears the previously stored data after reading so it can only be read once.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - https://developer.chrome.com/extensions/login#property-callback-result.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/login#method-fetchDataForNextLoginAttempt.
Reads the dataForNextLoginAttempt set by exitCurrentSession(). Clears the previously stored data after reading so it can only be read once. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - https://developer.chrome.com/extensions/login#property-callback-result. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/login#method-fetchDataForNextLoginAttempt.
(launch-managed-guest-session)
(launch-managed-guest-session password)
Launches a managed guest session if one is set up via the admin console. If there are several managed guest sessions set up, it will launch the first available one.
|password| - If provided, the launched managed guest session will be lockable, and can only be unlocked by calling unlockManagedGuestSession() with the same password.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/login#method-launchManagedGuestSession.
Launches a managed guest session if one is set up via the admin console. If there are several managed guest sessions set up, it will launch the first available one. |password| - If provided, the launched managed guest session will be lockable, and can only be unlocked by calling unlockManagedGuestSession() with the same password. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/login#method-launchManagedGuestSession.
(lock-managed-guest-session)
Locks the current managed guest session. The session has to have been launched by launchManagedGuestSession() with a password.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/login#method-lockManagedGuestSession.
Locks the current managed guest session. The session has to have been launched by launchManagedGuestSession() with a password. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/login#method-lockManagedGuestSession.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.login namespace.
Taps all valid non-deprecated events in chromex.ext.login namespace.
(unlock-managed-guest-session password)
Unlocks a managed guest session which was launched by launchManagedGuestSession() with a password. The session will unlock if the provided password matches the one provided earlier.
|password| - The password which will be used to unlock the session.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/login#method-unlockManagedGuestSession.
Unlocks a managed guest session which was launched by launchManagedGuestSession() with a password. The session will unlock if the provided password matches the one provided earlier. |password| - The password which will be used to unlock the session. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/login#method-unlockManagedGuestSession.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close