File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ export default class SupabaseClient {
25
25
* Supabase Auth allows you to create and manage user sessions for access to data that is secured by access policies.
26
26
*/
27
27
auth : SupabaseAuthClient
28
- /**
29
- * Supabase Storage allows you to manage user-generated content, such as photos or videos.
30
- */
31
- storage : SupabaseStorageClient
28
+
32
29
protected schema : string
33
30
protected restUrl : string
34
31
protected realtimeUrl : string
@@ -63,14 +60,20 @@ export default class SupabaseClient {
63
60
64
61
this . auth = this . _initSupabaseAuthClient ( settings )
65
62
this . realtime = this . _initRealtimeClient ( )
66
- this . storage = this . _initStorageClient ( )
67
63
68
64
// In the future we might allow the user to pass in a logger to receive these events.
69
65
// this.realtime.onOpen(() => console.log('OPEN'))
70
66
// this.realtime.onClose(() => console.log('CLOSED'))
71
67
// this.realtime.onError((e: Error) => console.log('Socket error', e))
72
68
}
73
69
70
+ /**
71
+ * Supabase Storage allows you to manage user-generated content, such as photos or videos.
72
+ */
73
+ get storage ( ) {
74
+ return this . _initStorageClient ( )
75
+ }
76
+
74
77
/**
75
78
* Perform a table operation.
76
79
*
You can’t perform that action at this time.
0 commit comments