Skip to main content

SupabaseModule

Class

Provides access to Supabase authentication and database capabilities.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Provides access to Supabase authentication and database capabilities.

Index

Extends

Properties

name

name: string

The name of the Asset in Lens Studio.

Default Value

""

Inherited from

Asset.name


uniqueIdentifier

readonly uniqueIdentifier: string

Since

Lens Scripting Version 176

Inherited from

Asset.uniqueIdentifier

Methods

createRealtimeConnection()

createRealtimeConnection(url, protocols?): WebSocket

SPECS

Performs a realtime connection to any Supabase Project to replace InternetModule.createWebSocket for supabase. The SupabaseClient in the asset library provides the supabase-js client library configured for Lens Studio, and uses this API to connect to your Supabase backend for Realtime features.

  • url The Supabase Realtime endpoint URL, or a local URL when experimental API access is enabled.
  • protocols Optional connection subprotocols.

Parameters

ParameterType
urlstring
protocols?string | string[]

Returns

WebSocket

Since

Lens Scripting Version 362


getTypeName()

static getTypeName(): TypeName<SupabaseModule>

SPECS

Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

Returns

TypeName<SupabaseModule>

Overrides

Asset.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

Asset.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object matches or derives from the passed in type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

Asset.isOfType


isSame()

isSame(other): boolean

Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

Asset.isSame


performSupabaseRequest()

performSupabaseRequest(request, options?): Promise<Response>

SPECS

Performs a request to any Supabase Project to replace InternetModule.fetch for supabase.

Parameters

ParameterType
requeststring | Request
options?any

Returns

Promise<Response>