Skip to content
On this page

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/sdk / rest / authenticateShare

Function: authenticateShare()

authenticateShare<Schema>(share, password?, mode?): RestCommand<AuthenticationData, Schema>

Authenticate as a share user.

Type parameters

Schema extends object

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.

Source

rest/commands/utils/shares.ts:14