From 9212577190de83ce10f92da1040ef07ff1816bbf Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Sep 2024 12:28:16 +0100 Subject: [PATCH] Fix some types --- index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e31454b..69d5d84 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,6 +3,11 @@ import { KeyObject } from 'crypto' declare module 'prismarine-auth' { export class Authflow { + + username: string + + options: MicrosoftAuthFlowOptions + /** * Creates a new Authflow instance, which holds its own token cache * @param username A unique identifier. If using password auth, this should be an email. @@ -15,7 +20,7 @@ declare module 'prismarine-auth' { // Returns a Microsoft Oauth access token -- https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens getMsaToken(): Promise // Returns an XSTS token -- https://docs.microsoft.com/en-us/gaming/xbox-live/api-ref/xbox-live-rest/additional/edsauthorization - getXboxToken(relyingParty?: string): Promise<{ + getXboxToken(relyingParty?: string, forceRefresh?: boolean): Promise<{ userXUID: string, userHash: string, XSTSToken: string,