Skip to content

Commit 8709d99

Browse files
author
dng
authored
docs: Add default values to client initialization (#667)
1 parent 5c5b3b1 commit 8709d99

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/v1/modules/lib_types.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ <h5>
325325
</h5>
326326
<div class="tsd-comment tsd-typography">
327327
<div class="lead">
328-
<p>Automatically refreshes the token for logged in users.</p>
328+
<p>Automatically refreshes the token for logged in users. Defaults to <code>true</code>.</p>
329329
</div>
330330
</div>
331331
</li>
@@ -359,7 +359,7 @@ <h5>
359359
</h5>
360360
<div class="tsd-comment tsd-typography">
361361
<div class="lead">
362-
<p>Detect a session from the URL. Used for OAuth login callbacks.</p>
362+
<p>Detect a session from the URL. Used for OAuth login callbacks. Defaults to <code>true</code>.</p>
363363
</div>
364364
</div>
365365
</li>
@@ -440,7 +440,7 @@ <h5>
440440
</h5>
441441
<div class="tsd-comment tsd-typography">
442442
<div class="lead">
443-
<p>Whether to persist a logged in session to storage.</p>
443+
<p>Whether to persist a logged in session to storage. Defaults to <code>true</code>.</p>
444444
</div>
445445
</div>
446446
</li>
@@ -473,7 +473,7 @@ <h5>
473473
<div class="lead">
474474
<p>
475475
The Postgres schema which your tables belong to. Must be on the list of
476-
exposed schemas in Supabase. Defaults to &#39;public&#39;.
476+
exposed schemas in Supabase. Defaults to <code>public</code>.
477477
</p>
478478
</div>
479479
</div>

docs/v1/spec.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,7 @@
31183118
"isOptional": true
31193119
},
31203120
"comment": {
3121-
"shortText": "Automatically refreshes the token for logged in users."
3121+
"shortText": "Automatically refreshes the token for logged in users. Defaults to `true`."
31223122
},
31233123
"sources": [
31243124
{
@@ -3172,7 +3172,7 @@
31723172
"isOptional": true
31733173
},
31743174
"comment": {
3175-
"shortText": "Detect a session from the URL. Used for OAuth login callbacks."
3175+
"shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to `true`."
31763176
},
31773177
"sources": [
31783178
{
@@ -3297,7 +3297,7 @@
32973297
"isOptional": true
32983298
},
32993299
"comment": {
3300-
"shortText": "Whether to persist a logged in session to storage."
3300+
"shortText": "Whether to persist a logged in session to storage. Defaults to `true`."
33013301
},
33023302
"sources": [
33033303
{
@@ -3345,7 +3345,7 @@
33453345
"isOptional": true
33463346
},
33473347
"comment": {
3348-
"shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'."
3348+
"shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`."
33493349
},
33503350
"sources": [
33513351
{

src/lib/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ export type Fetch = typeof fetch
99

1010
export type SupabaseClientOptions<SchemaName> = {
1111
/**
12-
* The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'.
12+
* The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`.
1313
*/
1414
db?: {
1515
schema?: SchemaName
1616
}
1717

1818
auth?: {
1919
/**
20-
* Automatically refreshes the token for logged in users.
20+
* Automatically refreshes the token for logged in users. Defaults to true.
2121
*/
2222
autoRefreshToken?: boolean
2323
/**
24-
* Optional key name used for storing tokens in local storage
24+
* Optional key name used for storing tokens in local storage.
2525
*/
2626
storageKey?: string
2727
/**
2828
* Whether to persist a logged in session to storage.
2929
*/
3030
persistSession?: boolean
3131
/**
32-
* Detect a session from the URL. Used for OAuth login callbacks.
32+
* Detect a session from the URL. Used for OAuth login callbacks. Defaults to true.
3333
*/
3434
detectSessionInUrl?: boolean
3535
/**
36-
* A storage provider. Used to store the logged in session.
36+
* A storage provider. Used to store the logged in session. Defaults to true.
3737
*/
3838
storage?: SupabaseAuthClientOptions['storage']
3939
}

0 commit comments

Comments
 (0)