Skip to main content

GoogleDriveOAuthInternetAccount

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

plugins/authentication/src/GoogleDriveOAuthModel/model.tsx

GoogleDriveOAuthInternetAccount - Properties

property: type

// type signature
ISimpleType<"GoogleDriveOAuthInternetAccount">
// code
type: types.literal('GoogleDriveOAuthInternetAccount')

property: configuration

// type signature
ConfigurationSchemaType<{ authEndpoint: { description: string; type: string; defaultValue: string; }; scopes: { description: string; type: string; defaultValue: string; }; domains: { description: string; type: string; defaultValue: string[]; }; responseType: { ...; }; }, ConfigurationSchemaOptions<...>>
// code
configuration: ConfigurationReference(configSchema)

GoogleDriveOAuthInternetAccount - Getters

getter: toggleContents

The FileSelector icon for Google drive

// type
Element

getter: selectorLabel

// type
string

GoogleDriveOAuthInternetAccount - Methods

method: getFetcher

// type signature
getFetcher: (location?: UriLocation) => (input: RequestInfo, init?: RequestInitWithMetadata) => Promise<Response>

method: openLocation

// type signature
openLocation: (location: UriLocation) => GoogleDriveFile

GoogleDriveOAuthInternetAccount - Actions

action: validateToken

// type signature
validateToken: (token: string, location: UriLocation) => Promise<string>