mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
more
This commit is contained in:
parent
53c984741b
commit
4b6b01ba3a
@ -1479,10 +1479,6 @@ export class _StackClientAppImplIncomplete<HasTokenStore extends boolean, Projec
|
||||
* @returns Result containing either the refresh token or an error
|
||||
*/
|
||||
async promptCliLogin(options: { appUrl: string, expiresInMillis?: number }): Promise<Result<string, KnownErrors["CliAuthError"] | KnownErrors["CliAuthExpiredError"] | KnownErrors["CliAuthUsedError"]>> {
|
||||
if (!options.appUrl) {
|
||||
return Result.error(new KnownErrors.CliAuthError("appUrl is required and must be set to the URL of the app you're authenticating with"));
|
||||
}
|
||||
|
||||
// Step 1: Initiate the CLI auth process
|
||||
const response = await this._interface.sendClientRequest(
|
||||
"/auth/cli",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user