We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5acc0c commit ee85d43Copy full SHA for ee85d43
1 file changed
packages/dids/src/did.ts
@@ -265,8 +265,8 @@ export class DID {
265
options: CreateJWSOptions,
266
payload: T
267
): Promise<GeneralJWS> {
268
- if (this._id == null) throw new Error('DID is not authenticated')
269
if (this._client == null) throw new Error('No provider available')
+ if (this._id == null) throw new Error('DID is not authenticated')
270
const { jws } = await this._client.request('did_createJWS', {
271
did: this._id,
272
...options,
0 commit comments