1
1
import { GoTrueClient } from '@supabase/gotrue-js'
2
2
import { RealtimeClientOptions } from '@supabase/realtime-js'
3
- // TODO(Joel): Validate if this is something we want
4
- // import { FunctionsOptions } from '@supabase/functions-js'
5
- // import { StorageOptions } from '@supabase/storage-js'
6
3
7
4
type GoTrueClientOptions = ConstructorParameters < typeof GoTrueClient > [ 0 ]
8
5
@@ -24,27 +21,27 @@ export type SupabaseClientOptions = {
24
21
/**
25
22
* Automatically refreshes the token for logged in users.
26
23
*/
27
- autoRefreshToken : boolean
24
+ autoRefreshToken ? : boolean
28
25
/**
29
26
* Allows to enable/disable multi-tab/window events
30
27
*/
31
- multiTab : boolean
28
+ multiTab ? : boolean
32
29
/**
33
30
* Whether to persist a logged in session to storage.
34
31
*/
35
- persistSession : boolean
32
+ persistSession ? : boolean
36
33
/**
37
34
* Detect a session from the URL. Used for OAuth login callbacks.
38
35
*/
39
- detectSessionInUrl : boolean
36
+ detectSessionInUrl ? : boolean
40
37
/**
41
38
* A storage provider. Used to store the logged in session.
42
39
*/
43
- localStorage : SupabaseAuthClientOptions [ 'localStorage' ]
40
+ localStorage ? : SupabaseAuthClientOptions [ 'localStorage' ]
44
41
/**
45
42
* Options passed to the gotrue-js instance
46
43
*/
47
- cookieOptions : SupabaseAuthClientOptions [ 'cookieOptions' ]
44
+ cookieOptions ? : SupabaseAuthClientOptions [ 'cookieOptions' ]
48
45
}
49
46
50
47
/**
@@ -54,11 +51,13 @@ export type SupabaseClientOptions = {
54
51
/**
55
52
* Options passed to the storage-js instance
56
53
*/
57
- storage ?: StorageOptions
54
+ // TODO: Add StorageOptions once ready
55
+ storage ?: GenericObject
58
56
/**
59
57
* Options passed to the functions-js instance
60
58
*/
61
- functions ?: FunctionsOptions
59
+ // TODO: Add Function Options once ready
60
+ functions ?: GenericObject
62
61
/**
63
62
* A custom `fetch` implementation.
64
63
*/
0 commit comments