Use the chrome.usersPrivate API to manage users.
Use the chrome.usersPrivate API to manage users. * available since Chrome master
(add-whitelisted-user email)
Adds a new user with the given email to the whitelist. The callback is called with true if the user was added succesfully, or with false if not (e.g. because the user was already present, or the current user isn't the owner).
|email| - ?
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 [success] where:
|success| - ?
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.
Adds a new user with the given email to the whitelist. The callback is called with true if the user was added succesfully, or with false if not (e.g. because the user was already present, or the current user isn't the owner). |email| - ? 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 [success] where: |success| - ? 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.
(get-current-user)
Returns the current user.
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 [user] where:
|user| - ?
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.
Returns the current user. 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 [user] where: |user| - ? 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.
(get-login-status)
Get login status.
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 [status] where:
|status| - ?
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.
Get login status. 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 [status] where: |status| - ? 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.
(get-whitelisted-users)
Gets a list of the currently whitelisted users.
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 [users] where:
|users| - ?
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.
Gets a list of the currently whitelisted users. 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 [users] where: |users| - ? 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.
(is-whitelist-managed)
Whether the whitelist is managed by enterprise.
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 [managed] where:
|managed| - ?
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.
Whether the whitelist is managed by enterprise. 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 [managed] where: |managed| - ? 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.
(remove-whitelisted-user email)
Removes the user with the given email from the whitelist. The callback is called with true if the user was removed succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner).
|email| - ?
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 [success] where:
|success| - ?
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.
Removes the user with the given email from the whitelist. The callback is called with true if the user was removed succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner). |email| - ? 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 [success] where: |success| - ? 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.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.users-private namespace.
Taps all valid non-deprecated events in chromex.ext.users-private namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close