Przeglądaj źródła

CR suggested change

Co-authored-by: Kamil Piechaczek <pomek@users.noreply.github.com>
jczapiewski-cksource 5 lat temu
rodzic
commit
3d0c6e3d08

+ 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';