Module

cloud-services/token

@ckeditor/ckeditor5-cloud-services/src/token

module

Filtering

Classes

  • Token

    Class representing the token used for communication with CKEditor Cloud Services. Value of the token is retrieving from the specified URL and is refreshed every 1 hour by default.

Functions

  • defaultRefreshToken( tokenUrl )

    private

    Parameters

    tokenUrl : String
  • refreshToken() → Promise.<String>

    This function is called in a defined interval by the Token class. It also can be invoked manually. It should return a promise, which resolves with the new token value. If any error occurs it should return a rejected promise with an error message.

    Returns

    Promise.<String>