@public
type
LoginMethod
Login methods that may be used for Studio authentication.
Import
import {type LoginMethod} from 'sanity'
Signature
type LoginMethod = 'dual' | 'cookie' | 'token'
type LoginMethod = 'dual' | 'cookie' | 'token'
sanity
useClient
()
useColorSchemeSetValue
()
@alpha
useColorSchemeValue
()
@alpha
useCurrentLocale
()
useCurrentUser
()
useDataset
()
useDateTimeFormat
()
useFormValue
()
useFormattedDuration
()
useGetFormValue
()
useListFormat
()
useNumberFormat
()
useProjectId
()
useReferringDocuments
()
@beta
useSchema
()
useTranslation
()
useUnitFormatter
()
useUserListWithPermissions
()
@beta
buildLegacyTheme
()
defineArrayMember
()
@beta
defineField
()
@beta
defineLocale
()
defineLocaleResourceBundle
()
defineSearchFilter
()
@alpha
defineSearchFilterOperators
()
@alpha
defineSearchOperator
()
@alpha
defineType
()
@beta
documentIdEquals
()
isCrossDatasetReference
()
@beta
isDocumentSchemaType
()
isImage
()
isKeyedObject
()
isPortableTextListBlock
()
@alpha
isPortableTextSpan
()
@alpha
isPortableTextTextBlock
()
@alpha
isSanityDocument
()
isSlug
()
isTypedObject
()
userHasRole
()
validateDocument
()
@beta
ArrayDefinition
ArrayOfObjectsFormNode
ArrayOfPrimitivesFormNode
ArrayOptions
ArrayRule
ArraySchemaType
Asset
AssetSchemaTypeOptions
AssetSource
AssetSourceComponentProps
AssetSourceSpec
AuthConfig
AuthProvider
BaseItemProps
BaseSchemaDefinition
BaseSchemaType
BaseSchemaTypeOptions
BlockAnnotationDefinition
BlockAnnotationProps
BlockDecoratorDefinition
BlockDecoratorProps
BlockDefinition
BlockListDefinition
BlockListItemProps
BlockMarksDefinition
BlockOptions
BlockProps
BlockRule
BlockStyleDefinition
BlockStyleProps
BooleanDefinition
BooleanOptions
BooleanRule
BooleanSchemaType
CollapseOptions
ConditionalPropertyCallbackContext
ConfigContext
CrossDatasetReferenceDefinition
CrossDatasetReferenceSchemaType
@beta
CrossDatasetReferenceValue
@beta
CrossDatasetType
@beta
CurrentUser
CustomValidator
DateDefinition
DateOptions
DateRule
DatetimeDefinition
DatetimeOptions
DatetimeRule
DefineSchemaOptions
@beta
DeprecatedProperty
DeprecationConfiguration
DocumentDefinition
DocumentRule
EmailDefinition
EmailOptions
EmailRule
EmptyProps
EnumListProps
FieldDefinitionBase
FieldError
FieldGroup
FieldMember
FieldReference
FieldSetMember
FileAsset
FileDefinition
FileOptions
FileRule
FileSchemaType
FileValue
File_2
FormBuilderProps
@alpha
FormNodeValidation
FormProviderProps
@alpha
FormattedDuration
GeopointDefinition
GeopointOptions
GeopointRule
GeopointValue
GetHookCollectionStateProps
HookCollectionActionHook
I18nTitledListValue
ImageAsset
ImageCrop
ImageDefinition
ImageDimensions
ImageHotspot
ImageMetadata
ImageOptions
ImagePalette
ImageRule
ImageSwatch
ImageValue
Image_2
InitialValueResolverContext
InitialValueTemplateItem
InsertMenuOptions
@alpha
IntrinsicDefinitions
KeyedObject
LegacyThemeProps
LocaleConfigContext
LocaleDefinition
LocalePluginOptions
LocaleResourceBundle
LocaleResourceRecord
LocaleSource
LocaleWeekInfo
Locale_2
LocalizedValidationMessages
MultiFieldSet
NavbarAction
@beta
NumberDefinition
NumberOptions
NumberRule
NumberSchemaType
ObjectArrayFormNode
ObjectDefinition
ObjectField
ObjectFormNode
ObjectItemProps
ObjectOptions
ObjectRule
ObjectSchemaType
OperatorButtonValueComponentProps
@alpha
OperatorInputComponentProps
@alpha
PluginOptions
@beta
PortableTextInputProps
PortableTextListBlock
@alpha
PortableTextObject
@alpha
PortableTextSpan
@alpha
PortableTextTextBlock
@alpha
PrepareViewOptions
PreviewConfig
PreviewValue
PrimitiveItemProps
Reference
ReferenceBaseOptions
ReferenceDefinition
ReferenceFilterQueryOptions
ReferenceFilterResolverContext
ReferenceFilterResolverOptions
ReferenceRule
ReferenceSchemaType
RenderPortableTextInputEditableProps
Role
Rule
RuleDef
SanityCreateOptions
SanityDocument
SanityDocumentLike
SanityFormConfig
ScheduledPublishingPluginOptions
Schema
SchemaValidationError
SearchConfiguration
SearchOperatorBase
@alpha
SearchOperatorBuilder
@alpha
SingleFieldSet
Slug
SlugDefinition
SlugOptions
SlugRule
SlugSchemaType
SlugSourceContext
SlugValidationContext
SlugValue
SortOrderingItem
@beta
Source
SourceClientOptions
StringDefinition
StringOptions
StringRule
StringSchemaType
StudioTheme
Template
TemplateFieldDefinition
TemplateItem
TemplateReferenceTarget
TextDefinition
TextOptions
TextRule
TextSchemaType
TitledListValue
Tool
TranslationProps
TypeAliasDefinition
TypeReference
TypeTarget
TypedObject
UriValidationOptions
UrlDefinition
UrlOptions
UrlRule
UseFormattedDurationOptions
UseListFormatOptions
UseTranslationOptions
User
UserListWithPermissionsOptions
@beta
ValidateDocumentOptions
@beta
ValidationContext
ValidationError
ValidationMarker
ValuelessSearchOperatorBuilder
@alpha
WeakCrossDatasetReferenceValue
@beta
WidenInitialValue
@beta
WidenValidation
@beta
Workspace
ArrayOfEntry
ArrayOfType
AssetFromSource
AssetMetadataType
AutocompleteString
@beta
BooleanFormNode
ComposableOption
ConditionalProperty
ConditionalPropertyCallback
CrossDatasetReferenceFilterResolver
@beta
CrossDatasetReferenceFilterSearchOptions
@beta
CustomValidatorResult
DefaultPluginsWorkspaceOptions
@beta
DefineArrayMemberBase
@beta
DefineSchemaBase
@beta
DefineSchemaType
@beta
DeprecatedSchemaType
DocumentField
@beta
DuplicateKeysError
FieldDefinition
FieldGroupDefinition
FieldRules
Fieldset
FieldsetDefinition
FormattableMeasurementUnit
GeneralPreviewLayoutKey
HotkeysProps
I18nSearchOperatorDescriptionKey
@alpha
I18nSearchOperatorNameKey
@alpha
I18nTextRecord
ImageMetadataType
ImplicitLocaleResourceBundle
IncompatibleTypeError
IndexTuple
InitialValueProperty
InitialValueResolver
InlineFieldDefinition
IntrinsicArrayOfBase
@beta
IntrinsicArrayOfDefinition
IntrinsicBase
@beta
IntrinsicTypeName
ItemProps
LocaleNestedResource
LocaleResourceKey
LocalesBundlesOption
LocalesOption
LoginMethod
MaybeAllowUnknownProps
@beta
MaybePreview
@beta
MissingKeysError
MixedArrayError
NarrowPreview
@beta
NumberFormNode
ObjectFieldType
ObjectItem
ObjectMember
PathSegment
PortableTextBlock
@alpha
PortableTextChild
@alpha
PortableTextPreviewLayoutKey
PreviewLayoutKey
ReferenceFilterOptions
ReferenceFilterResolver
ReferenceFilterSearchOptions
ReferenceOptions
ReferenceTo
ReferenceValue
RuleBuilder
RuleSpec
RuleTypeConstraint
SchemaType
SchemaTypeDefinition
SchemaValidationValue
SearchFilterDefinition
@beta
SearchOperatorButtonValue
@alpha
SearchOperatorInput
@alpha
SearchOperatorParams
@alpha
SearchOperatorType
@alpha
SearchStrategy
SearchValueFormatterContext
@alpha
SlugIsUniqueValidator
SlugParent
SlugSourceFn
SlugifierFn
SortOrdering
@beta
StaticLocaleResourceBundle
StrictDefinition
@beta
StringFormNode
StudioThemeColorSchemeKey
SwatchName
TemplateArrayFieldDefinition
TemplateParameter
TemplateResolver
TranslateComponentMap
TypeAnnotationMismatchError
UndeclaredMembersError
UnitFormatter
UseDateTimeFormatOptions
UseNumberFormatOptions
UseTranslationResponse
UseUnitFormatterOptions
ValidationBuilder
ValuelessSearchOperatorParams
@alpha
sanity/cli
sanity/migrate
append
()
at
()
collectMigrationMutations
()
create
()
createIfNotExists
()
createOrReplace
()
dec
()
decodeText
()
defineMigration
()
delay
()
delete_
()
diffMatchPatch
()
dryRun
()
filter
()
fromDocuments
()
fromExportArchive
()
fromExportEndpoint
()
inc
()
insert
()
insertAfter
()
insertBefore
()
map
()
parse
()
parseJSON
()
patch
()
prepend
()
replace
()
run
()
set
()
setIfMissing
()
split
()
stringify
()
stringifyJSON
()
take
()
toArray
()
toFetchOptionsIterable
()
transaction
()
truncate
()
unset
()
AnyOp
ArrayOp
AsyncIterableMigration
CreateIfNotExistsMutation
CreateMutation
CreateOrReplaceMutation
DecOp
DeleteMutation
DiffMatchPatchOp
DocumentMigrationReturnValue
IncOp
IndexedSegment
InsertOp
JSONParser
JsonArray
JsonObject
JsonPrimitive
JsonValue
KeyedSegment
MigrateDefinition
Mutation
NodeMigrationReturnValue
NodePatch
NodePatchList
NumberOp
Operation
PatchMutation
PatchOptions
Path
PrimitiveOp
RelativePosition
ReplaceOp
SanityDocument
SetIfMissingOp
SetOp
StringOp
TruncateOp
UnsetOp
sanity/router
sanity/structure
BaseGenericList
BaseIntentParams
BaseView
BuildableComponent
BuildableGenericList
BuildableList
ChildObservable
ChildResolver
ChildResolverOptions
Component
ComponentInput
ComponentView
DefaultDocumentNodeContext
Divider
DocumentList
DocumentListInput
DocumentListItem
DocumentListItemInput
DocumentListOptions
DocumentNode
DocumentOptions
DocumentTypeListInput
EditorNode
FormView
GenericList
GenericListInput
Intent
IntentChecker
List
ListDisplayOptions
ListInput
ListItem
ListItemDisplayOptions
ListItemInput
ListItemSerializeOptions
MenuItem
MenuItemGroup
PartialDocumentList
PartialDocumentNode
Serializable
SerializeOptions
StructureBuilder
StructureContext
StructureNode
StructureToolOptions
UnserializedListItem
Child
Collection
CollectionBuilder
DefaultDocumentNodeResolver
IntentJsonParams
IntentParams
ItemChild
ListItemChild
MenuItemActionType
MenuItemParamsType
PartialDocumentListItem
PartialListItem
PartialMenuItem
SerializePath
StructureLocaleResourceKeys
@alpha
StructureResolver
UnserializedListItemChild
UserComponent
UserViewComponent
View
ViewBuilder
@public
type
LoginMethod
Login methods that may be used for Studio authentication.
import {type LoginMethod} from 'sanity'
type LoginMethod = 'dual' | 'cookie' | 'token'
type LoginMethod = 'dual' | 'cookie' | 'token'
sanity@3.69.0