Expose Documentation

User Repository
#

The expose server tries to load users out of the built-in SQLite database by default.

If you want to change the default implementation and load your users from a different storage engine, you can implement the UserRepository interface and change it in your expose configuration file.

This is how the interface looks like:

use React\Promise\PromiseInterface;

interface UserRepository
{
    public function getUsers(): PromiseInterface;

    public function getUserById($id): PromiseInterface;

    public function getUserByToken(string $authToken): PromiseInterface;

    public function storeUser(array $data): PromiseInterface;

    public function deleteUser($id): PromiseInterface;
}

Let us do the heavy lifting.

You want custom domains with automatic SSL, reserved subdomains and the benefits of our global Expose network with blazing fast servers without the hassle of maintaining your own server. Totally understandable.

We've got you covered.

Get Expose Pro
Desktop Apps With Electron course