Skip to content

Commit

Permalink
Fix some types
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienHH committed Sep 13, 2024
1 parent a7cd0b4 commit 9212577
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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<string>
// 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,
Expand Down

0 comments on commit 9212577

Please sign in to comment.