(auth: AuthType<SchemaDef> | undefined)
| 434 | } |
| 435 | |
| 436 | $setAuth(auth: AuthType<SchemaDef> | undefined) { |
| 437 | if (auth !== undefined && (typeof auth !== 'object' || auth === null || Array.isArray(auth))) { |
| 438 | throw new Error('Invalid auth object'); |
| 439 | } |
| 440 | const newClient = new ClientImpl(this.schema, this.$options, this); |
| 441 | newClient.auth = auth; |
| 442 | return newClient; |
| 443 | } |
| 444 | |
| 445 | get $auth() { |
| 446 | return this.auth; |
no outgoing calls