GoogleDriveOAuthInternetAccount
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Provided by the authentication plugin. View source.
Fetches a file from a Google Drive share link through the Drive API, with an OAuth 2.0 token from the Google login.
The configuration slots for this model are documented on its config schema page.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
typetype: types.literal('GoogleDriveOAuthInternetAccount') | |
configurationconfiguration: ConfigurationReference(configSchema) |
Getters
| Member | Description |
|---|---|
toggleContentsElement | The FileSelector icon for Google drive |
selectorLabelstring |
10 inherited getters from one model
From OAuthInternetAccount: conf, authEndpoint, tokenEndpoint, needsPKCE, clientId, scopes, state, responseType, refreshTokenKey, authFlowParams
Methods
| Member | Description |
|---|---|
| getFetcher | |
openLocation(location: UriLocation) => GoogleDriveFile |
1 inherited method from one model
Actions
| Member | Description |
|---|---|
validateToken(token: string, location: UriLocation) => Promise<string> |
8 inherited actions from one model
From OAuthInternetAccount: storeRefreshToken, removeRefreshToken, postTokenGrant, , exchangeRefreshForAccessToken, validateTokenWithProbe, getTokenViaAuthFlow, getTokenFromUser