Liking cljdoc? Tell your friends :D

chromex.ext.login

clj

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
raw docstring

api-tableclj

source

exit-current-sessionclj/smacro

(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.
sourceraw docstring

exit-current-session*cljs

(exit-current-session* config data-for-next-login-attempt)
source

fetch-data-for-next-login-attemptclj/smacro

(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.
sourceraw docstring

fetch-data-for-next-login-attempt*cljs

(fetch-data-for-next-login-attempt* config)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

launch-managed-guest-sessionclj/smacro

(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.
sourceraw docstring

launch-managed-guest-session*cljs

(launch-managed-guest-session* config password)
source

lock-managed-guest-sessionclj/smacro

(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.
sourceraw docstring

lock-managed-guest-session*cljs

(lock-managed-guest-session* config)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

unlock-managed-guest-sessionclj/smacro

(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.
sourceraw docstring

unlock-managed-guest-session*cljs

(unlock-managed-guest-session* config password)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close