Sign-in
Sign-in methods
Every method resolves to a ConnectResult with the addresses and isNewUser.
Email code
swift
try await wallet.connectWithEmail(email)
let result = try await wallet.verifyEmailCode(email: email, code: code)Phone code
swift
try await wallet.connectWithPhone("+2348012345678") // E.164
let result = try await wallet.verifyPhoneCode(phone: "+2348012345678", code: code)A token you already hold
swift
try await wallet.connectWithGoogleToken(idToken) // from Google Sign-In for iOS
try await wallet.connectWithKingsChatToken(accessToken) // a KingsChat access token
try await wallet.connectWithToken(myJWT, providerId: "prov-1") // your own authThe provider profile
result.profile carries name, email, picture and username when the provider supplied them. Decane never stores it, so read it at sign-in.
Not in this version
connectWithGoogle(), connectWithX() and connectWithKingsChat() (the redirect flows) and signInWithPasskey() are on the API already and throw DecaneError.callSequence or .platformHookMissing with a message that says so.