StackApp object. For setup instructions, see Setup.
Overview
- HexclaveClientApp - Client-level permissions for frontend code
- HexclaveServerApp - Server-level permissions with full access
HexclaveClientApp
AStackApp with client-level permissions. It contains most of the useful methods and hooks for your client-side code.
Most commonly you get an instance of HexclaveClientApp by calling useHexclaveApp() in a Client Component.
Table of Contents
Constructor
Creates a newHexclaveClientApp instance.
Because each app creates a new connection to Hexclave’s backend, you should re-use existing instances wherever possible.
This object is not usually constructed directly. More commonly, you would construct a
HexclaveServerApp instead, pass it into your app setup (see the setup guide), and then use the useHexclaveApp() hook to obtain a HexclaveClientApp.The setup wizard does these steps for you, so you don’t need to worry about it unless you are manually setting up Hexclave.If you’re building a client-only app and don’t have a SECRET_SERVER_KEY, you can construct a HexclaveClientApp directly.User Management
hexclaveClientApp.getUser([options])
hexclaveClientApp.useUser([options])
hexclaveClientApp.getProject()
hexclaveClientApp.useProject()
Authentication
hexclaveClientApp.signInWithOAuth(provider)
hexclaveClientApp.signInWithCredential([options])
hexclaveClientApp.signUpWithCredential([options])
hexclaveClientApp.sendForgotPasswordEmail(email)
hexclaveClientApp.sendMagicLinkEmail(email)
HexclaveServerApp
LikeHexclaveClientApp, but with server permissions. Has full read and write access to all users.
Table of Contents
Constructor
Creates a newHexclaveServerApp instance.