From 68ef320881610bcd6294d59a4d98e03ade56c915 Mon Sep 17 00:00:00 2001 From: xhayper Date: Mon, 29 Jul 2024 17:12:07 +0700 Subject: [PATCH] feat: allow user to specify refreshToken --- src/Client.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index 2084880..62adb09 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -21,6 +21,8 @@ export type AuthorizeOptions = { scopes: (OAuth2Scopes | `${OAuth2Scopes}`)[]; prompt?: "consent" | "none"; useRPCToken?: boolean; + + refreshToken?: string; }; export interface ClientOptions { @@ -389,9 +391,14 @@ export class Client extends (EventEmitter as new () => TypedEventEmitter