create Share Token
suspend fun createShareToken(secret: LocalSecret? = null, accessMode: AccessMode = AccessMode.WRITE, name: String? = null): ShareToken
Creates a share token to share this repository with other devices.
By default the access mode of the token will be the same as the mode the repo is currently opened in but it can be escalated with the secret
param or de-escalated with the accessMode
param.
Parameters
secret
local repo secret. If not null, the share token's access mode will be the same as what the secret provides. Useful to escalate the access mode to above of what the repo is opened in.
access Mode
access mode of the token. Useful to de-escalate the access mode to below of what the repo is opened in.
name
optional human-readable name of the repo that the share token will be labeled with. Useful to help organize the share tokens.