Skip to content

Commit 842e662

Browse files
Add flow and deviceType options to relay (#464)
* add flow and deviceType for when authTitle is changed * Update index.d.ts --------- Co-authored-by: extremeheat <[email protected]>
1 parent 54840f8 commit 842e662

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ declare module 'bedrock-protocol' {
196196
// tokens to join the backend server. Cached after the first login.
197197
// If this is not specified, the client will be disconnected with a login prompt.
198198
onMsaCode?(data: ServerDeviceCodeResponse, client: Client): any
199+
// prismarine-auth configuration
200+
flow?: string,
201+
deviceType?: string
199202
}
200203

201204
export class Relay extends Server {

src/relay.js

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ class Relay extends Server {
186186
async openUpstreamConnection (ds, clientAddr) {
187187
const options = {
188188
authTitle: this.options.authTitle,
189+
flow: this.options.flow,
190+
deviceType: this.options.deviceType,
189191
offline: this.options.destination.offline ?? this.options.offline,
190192
username: this.options.offline ? ds.profile.name : ds.profile.xuid,
191193
version: this.options.version,

0 commit comments

Comments
 (0)