Skip to content

Commit a1eefae

Browse files
lizkenyonclaude
andcommitted
Add refresh token fields to Session.copy_attributes_from
Prevents sessions from losing refresh token data during copy operations, which would break token refresh functionality. Fixed merge conflict resolution: After merging main's refactored copy_attributes_from (direct assignment instead of JSON.parse), the new refresh_token fields were inadvertently omitted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 61bf37a commit a1eefae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/shopify_api/auth/session.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def copy_attributes_from(other)
151151
@associated_user = other.associated_user
152152
@is_online = other.online?
153153
@shopify_session_id = other.shopify_session_id
154+
@refresh_token = other.refresh_token
155+
@refresh_token_expires = other.refresh_token_expires
154156
self
155157
end
156158

0 commit comments

Comments
 (0)