8
0
Просмотр исходного кода

CR suggested change

Co-authored-by: Kamil Piechaczek <pomek@users.noreply.github.com>
jczapiewski-cksource 5 лет назад
Родитель
Сommit
3d0c6e3d08
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      packages/ckeditor-cloud-services-core/src/token/token.js

+ 6 - 0
packages/ckeditor-cloud-services-core/src/token/token.js

@@ -128,6 +128,12 @@ class Token {
 		clearTimeout( this._tokenRefreshTimeout );
 	}
 
+	/**
+	 * Checks whether the provided token follows the JSON Web Tokens (JWT) format.
+	 *
+	 * @protected
+	 * @param {String} tokenValue The token to validate.
+	 */
 	_validateTokenValue( tokenValue ) {
 		// The token must be a string.
 		const isString = typeof tokenValue === 'string';