From d7b63ac5523f96a0fb38da66209fc811a5c43f11 Mon Sep 17 00:00:00 2001 From: TheCactusBlue Date: Wed, 9 Apr 2025 09:44:34 -0700 Subject: [PATCH] add custom handler function --- .../apps/implementations/client-app-impl.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts b/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts index 08a4561ab..c7b1c6d75 100644 --- a/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts +++ b/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts @@ -1592,7 +1592,13 @@ export class _StackClientAppImplIncomplete> { + async promptCliLogin(options: { + appUrl: string, + expiresInMillis?: number, + maxAttempts?: number, + waitTimeMillis?: number, + promptLink?: (url: string) => void, + }): Promise> { // Step 1: Initiate the CLI auth process const response = await this._interface.sendClientRequest( "/auth/cli", @@ -1618,11 +1624,11 @@ export class _StackClientAppImplIncomplete