({ methodId }: acp.AuthenticateRequest)
| 101 | } |
| 102 | |
| 103 | async authenticate({ methodId }: acp.AuthenticateRequest): Promise<void> { |
| 104 | const method = z.nativeEnum(AuthType).parse(methodId); |
| 105 | |
| 106 | await clearCachedCredentialFile(); |
| 107 | await this.config.refreshAuth(method); |
| 108 | this.settings.setValue(SettingScope.User, 'selectedAuthType', method); |
| 109 | } |
| 110 | |
| 111 | async newSession({ |
| 112 | cwd, |
nothing calls this directly
no test coverage detected