TokenEntryInternetAccount
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Provided by the authentication plugin. View source.
Shared base for internet accounts whose token is supplied by the user through
a dialog (HTTP Basic, external token). Such accounts differ only in their
discriminating type and the dialog form used to collect the token, both
passed here. Not registered on its own — see HTTPBasicInternetAccount and
ExternalTokenInternetAccount.
Properties
| Member | Description |
|---|---|
typetype: types.literal(typeName) | |
configurationconfiguration: ConfigurationReference(configSchema) |
Getters
| Member | Description |
|---|---|
validateWithHEADboolean | validate the token with a HEAD request before it is used |
Actions
| Member | Description |
|---|---|
| getTokenFromUser | Prompt the user for a token via the account's dialog form, resolving with the entered token or rejecting if the user cancels. |
validateToken(token: string, location: UriLocation) => Promise<string> | Optionally validate the token with a HEAD request before use, per the validateWithHEAD config slot. |