mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added requestPairingCode method and handler
Fixed typo (trimUndefineds) Added bytesToCrockford Replaced advSecretKey with advKeyPair Added pairingCode prop Fixed formatting Added pairing code example
This commit is contained in:
@@ -199,7 +199,7 @@ export const initAuthCreds = (): AuthenticationCreds => {
|
||||
signedIdentityKey: identityKey,
|
||||
signedPreKey: signedKeyPair(identityKey, 1),
|
||||
registrationId: generateRegistrationId(),
|
||||
advSecretKey: randomBytes(32).toString('base64'),
|
||||
advKeyPair: Curve.generateKeyPair(),
|
||||
processedHistoryMessages: [],
|
||||
nextPreKeyId: 1,
|
||||
firstUnuploadedPreKeyId: 1,
|
||||
@@ -213,6 +213,7 @@ export const initAuthCreds = (): AuthenticationCreds => {
|
||||
identityId: randomBytes(20),
|
||||
registered: false,
|
||||
backupToken: randomBytes(20),
|
||||
registration: {} as never
|
||||
registration: {} as never,
|
||||
pairingCode: undefined
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user