Function redsyncmodulelib::get_creds[][src]

pub async fn get_creds(tokenr: String) -> String
Expand description

This will:

  • Fetch the account keys, required to access the Sync data later.
  • Create an OAuth token for the given client ID and scope, this is the easiest way of authenticating to Sync and the alternative BrowserID method that doesn’t require a OAuth token is deprecated.
  • Get the scoped key data that is used to compute the X-KeyID header.
  • Authenticate to the TokenServer to get a Sync token.
  • Derive the Sync key bundle from the Sync key.