UBER-690 Move user token generation to backend (#3604)

This commit is contained in:
Alexander Onnikov
2023-08-18 08:30:57 +07:00
committed by GitHub
parent 14104a0984
commit 348f7f4384
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -79,15 +79,15 @@ class SupportClientImpl implements SupportClient {
}
async showWidget (): Promise<void> {
await this.getWidget().then((widget) => widget.showWidget())
await this.getWidget().then(async (widget) => await widget.showWidget())
}
async hideWidget (): Promise<void> {
this.widget?.hideWidget()
await this.widget?.hideWidget()
}
async toggleWidget (): Promise<void> {
await this.getWidget().then((widget) => widget.toggleWidget())
await this.getWidget().then(async (widget) => await widget.toggleWidget())
}
private updateWidgetConfig (config: SupportWidgetConfig): void {
+3 -3
View File
@@ -48,9 +48,9 @@ export interface SupportClient {
export interface SupportWidget {
configure: (config: SupportWidgetConfig) => void
showWidget: () => void
hideWidget: () => void
toggleWidget: () => void
showWidget: () => Promise<void>
hideWidget: () => Promise<void>
toggleWidget: () => Promise<void>
destroy: () => void
}