File tree Expand file tree Collapse file tree
packages/js-server-sdk/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ export class FishjamClient {
3232 /**
3333 * Create new instance of Fishjam Client.
3434 *
35- * The constructor does NOT verify the provided credentials against the
36- * Fishjam backend. Use {@link FishjamClient.create} or
37- * {@link FishjamClient.checkCredentials} to verify them at construction time.
35+ * Throws {@link MissingFishjamIdException} or
36+ * {@link MissingManagementTokenException} if either field is missing.
37+ * Does not verify credentials against the backend — use
38+ * {@link FishjamClient.create} or call
39+ * {@link FishjamClient.checkCredentials} afterwards for that.
3840 *
3941 * Example usage:
4042 * ```
@@ -68,11 +70,12 @@ export class FishjamClient {
6870 }
6971
7072 /**
71- * Async factory. Constructs a client and verifies that the provided
72- * `fishjamId` and `managementToken` are accepted by the Fishjam backend.
73+ * Async factory: constructs a client and verifies credentials against
74+ * the backend.
7375 *
74- * Throws {@link InvalidFishjamConfigException} for malformed config,
75- * {@link UnauthorizedException} for bad credentials, or
76+ * Throws {@link MissingFishjamIdException} /
77+ * {@link MissingManagementTokenException } for missing fields,
78+ * {@link UnauthorizedException} for bad credentials,
7679 * {@link FishjamNotFoundException} for an unknown `fishjamId`.
7780 *
7881 * Example:
You can’t perform that action at this time.
0 commit comments