SupabaseModule
ClassProvides 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
Provides access to Supabase authentication and database capabilities.
Index
Properties
Methods
Extends
Properties
name
name:
string
The name of the Asset in Lens Studio.
Default Value
""
Inherited from
uniqueIdentifier
readonlyuniqueIdentifier:string
Since
Lens Scripting Version 176
Inherited from
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.
urlThe Supabase Realtime endpoint URL, or a local URL when experimental API access is enabled.protocolsOptional connection subprotocols.
Parameters
| Parameter | Type |
|---|---|
url | string |
protocols? | string | string[] |
Returns
Since
Lens Scripting Version 362
getTypeName()
staticgetTypeName():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
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
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
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean
Inherited from
performSupabaseRequest()
performSupabaseRequest(
request,options?):Promise<Response>
SPECS
Performs a request to any Supabase Project to replace InternetModule.fetch for supabase.
Parameters
| Parameter | Type |
|---|---|
request | string | Request |
options? | any |
Returns
Promise<Response>