Directus / @directus/sdk / rest / authenticateShare
Function: authenticateShare() ​
authenticateShare<
Schema
>(share
,password
?,mode
?):RestCommand
<AuthenticationData
,Schema
>
Authenticate as a share user.
Type Parameters ​
• Schema
Parameters ​
• share: string
The ID of the share.
• password?: string
Password for the share, if one is configured.
• mode?: AuthenticationMode
= 'cookie'
Whether to retrieve the refresh token in the JSON response, or in a httpOnly cookie. One of json
, cookie
or session
. Defaults to cookie
.
Returns ​
RestCommand
<AuthenticationData
, Schema
>
Authentication data.