We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Follow document: https://docs.reown.com/walletkit/ios/one-click-auth `let sessionAuthenticate = sessionAuthenticateMap[id] guard let sessionAuthenticate = sessionAuthenticate else { reject("", "", NSError(domain: "", code: 0)) return }
let requestedChains = Set(sessionAuthenticate.payload.chains.compactMap { Blockchain($0) }) let supportedChains = Set(chains.compactMap{Blockchain($0)}) let commonChains = requestedChains.intersection(supportedChains) let supportedMethods = [ "personal_sign" ] var authObjects = [AuthObject]() for chain in commonChains { let accountForChain = Account("\(chain):\(address)")! let supportedAuthPayload = try WalletKit.instance.buildAuthPayload( payload: sessionAuthenticate.payload, supportedEVMChains: Array(supportedChains), supportedMethods: supportedMethods ) let formattedMessage = try WalletKit.instance.formatAuthMessage(payload: supportedAuthPayload, account: accountForChain) let signature = try messageSigner.sign(message: formattedMessage, privateKey: Data(hex: privateKey), type: .eip191) let authObject = try WalletKit.instance.buildSignedAuthObject( authPayload: supportedAuthPayload, signature: signature, account: accountForChain ) authObjects.append(authObject) } let session = try await WalletKit.instance.approveSessionAuthenticate(requestId: sessionAuthenticate.id, auths: authObjects) if(session != nil) { print(session!) }`
I follow a document but getting error when approveSessionAuthenticate. I don't know what is the problem with signature.
SDK Version
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
The text was updated successfully, but these errors were encountered:
llbartekll
No branches or pull requests
Describe the bug
Follow document: https://docs.reown.com/walletkit/ios/one-click-auth
`let sessionAuthenticate = sessionAuthenticateMap[id]
guard let sessionAuthenticate = sessionAuthenticate else {
reject("", "", NSError(domain: "", code: 0))
return
}
I follow a document but getting error when approveSessionAuthenticate. I don't know what is the problem with signature.
SDK Version
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: