Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/vtt
server
FogServerPluginOptions
Interface FogServerPluginOptions
interface
FogServerPluginOptions
{
authorize
?
(
context
:
FogAuthorizationContext
)
:
boolean
|
Promise
<
boolean
>
;
filterSnapshot
?
(
snapshot
:
PluginSnapshot
,
viewer
:
{
role
?:
string
;
userId
?:
string
}
,
)
:
PluginSnapshot
|
null
;
}
Index
Methods
authorize?
filter
Snapshot?
Methods
Optional
authorize
authorize
?
(
context
:
FogAuthorizationContext
)
:
boolean
|
Promise
<
boolean
>
Parameters
context
:
FogAuthorizationContext
Returns
boolean
|
Promise
<
boolean
>
Optional
filter
Snapshot
filterSnapshot
?
(
snapshot
:
PluginSnapshot
,
viewer
:
{
role
?:
string
;
userId
?:
string
}
,
)
:
PluginSnapshot
|
null
Parameters
snapshot
:
PluginSnapshot
viewer
:
{
role
?:
string
;
userId
?:
string
}
Returns
PluginSnapshot
|
null
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
authorize
filter
Snapshot
Field Notes home
Docs
Playground
Field Notes
Loading...