Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Dont return empty user object
Browse files Browse the repository at this point in the history
  • Loading branch information
lizkenyon committed Mar 21, 2024
1 parent f8be3ad commit 4ec2eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shopify-api/lib/session/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class Session {
}),
) as any;
// If the onlineAccessInfo is not present, we are using the new session info and add it to the object
if (!obj.onlineAccessInfo) {
if (!obj.onlineAccessInfo && Object.keys(associatedUserObj).length === 0) {
obj.onlineAccessInfo = associatedUserObj;
}
Object.setPrototypeOf(obj, Session.prototype);
Expand Down

0 comments on commit 4ec2eb7

Please sign in to comment.