Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienHH committed Jan 20, 2025
1 parent 117e0cf commit 38b663e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Returns a Playfab login response which can be used to authenticate to the Playfa

[Returns ServerLoginResult](https://learn.microsoft.com/en-us/rest/api/playfab/server/authentication/login-with-xbox?view=playfab-rest#serverloginresult)

### getMinecraftBedrockServicesToken (): Promise<GetMinecraftBedrockServicesResponse>
### getMinecraftBedrockServicesToken ({ version }): Promise<GetMinecraftBedrockServicesResponse>

Returns an mctoken which can be used to query the minecraft-services.net/api and is also used to authenticate the WebSocket connection for the NetherNet WebRTC signalling channel.

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare module 'prismarine-auth' {
// Returns a Minecraft Bedrock Edition auth token. Public key parameter must be a KeyLike object.
getMinecraftBedrockToken(publicKey: KeyObject): Promise<string>

getMinecraftBedrockServicesToken(): Promise<GetMinecraftBedrockServicesResponse>
getMinecraftBedrockServicesToken(config: { version: string }): Promise<GetMinecraftBedrockServicesResponse>

getPlayfabLogin(): Promise<GetPlayfabLoginResponse>

Expand Down

0 comments on commit 38b663e

Please sign in to comment.