From 012035b34cafdb257d7488bcb77890f384707767 Mon Sep 17 00:00:00 2001 From: Maharshi Mishra Date: Fri, 5 Dec 2025 20:15:36 +0530 Subject: [PATCH] YNU-496: Migration guide fix YNU-496 --- docs/guides/migration-guide.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/guides/migration-guide.md b/docs/guides/migration-guide.md index 40762f7..8b782c6 100644 --- a/docs/guides/migration-guide.md +++ b/docs/guides/migration-guide.md @@ -117,6 +117,31 @@ Implementing the new session key protocol changes: - Plan expiration times based on your operational needs - Application-scoped keys track cumulative spending against allowances +#### Auth Verify Changes + +The `createEIP712AuthMessageSigner` function signature has changed to align with the new session key structure. + +```typescript +const eip712SigningFunction = createEIP712AuthMessageSigner( + walletClient, + { + scope: authMessage.scope, + // remove-next-line + application: authMessage.application, + // remove-next-line + participant: authMessage.session_key, + // remove-next-line + expire: authMessage.expire, + // add-next-line + session_key: authMessage.session_key, + // add-next-line + expires_at: authMessage.expires_at, + allowances: authMessage.allowances, + }, + getAuthDomain(), +); +``` + #### Migrate Channel Creation Channels must now be created with zero initial deposit and funded separately via the `resizeChannel` method: