Skip to content

Commit

Permalink
fix: initial hand-shake from archipelago
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Oct 4, 2024
1 parent 43725c8 commit a95e32d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export async function createArchipelagoConnection(

switch (message.$case) {
case 'challengeResponse': {
if (!message.challengeResponse.challengeToSign.startsWith('dcl-')) {
throw new Error('Invalid initial hand-shake')
}

const authChainJson = JSON.stringify(
Authenticator.signPayload(identity, message.challengeResponse.challengeToSign)
)
Expand Down

0 comments on commit a95e32d

Please sign in to comment.