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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -79,15 +79,15 @@ class SupportClientImpl implements SupportClient {
} }
async showWidget (): Promise<void> { async showWidget (): Promise<void> {
await this.getWidget().then((widget) => widget.showWidget()) await this.getWidget().then(async (widget) => await widget.showWidget())
} }
async hideWidget (): Promise<void> { async hideWidget (): Promise<void> {
this.widget?.hideWidget() await this.widget?.hideWidget()
} }
async toggleWidget (): Promise<void> { 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 { private updateWidgetConfig (config: SupportWidgetConfig): void {

View File

@ -48,9 +48,9 @@ export interface SupportClient {
export interface SupportWidget { export interface SupportWidget {
configure: (config: SupportWidgetConfig) => void configure: (config: SupportWidgetConfig) => void
showWidget: () => void showWidget: () => Promise<void>
hideWidget: () => void hideWidget: () => Promise<void>
toggleWidget: () => void toggleWidget: () => Promise<void>
destroy: () => void destroy: () => void
} }