Skip to main content

Xano

This prefab gives you a few components that allows you to connect to Xano and manage user authentication.

This prefab is built by Guillaume Maison. Please show him some love if you find this prefab useful.

Included components

Base Components

  • Xano - Setup XanoClient: Sets up the Xano SDK client to access your instance and workspace. Must be placed in your projects home component.
  • Xano - Request: Does an API Call to a Xano Endpoint and returns the result.

User Components

Quickstart

First, drop a Xano – Setup XanoClient in your project home component. Then set the API Group Base URL and the Datasource. Finally, open the Project Settings sidebar, find the Head Code input and paste the following at the top:

<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@xano/js-sdk@latest/dist/xano.min.js"
></script>

To automatically refresh the users authToken and keep them logged in for longer periods of time, add this to your project home component: