Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

[Feature]Add missing associated user data to the session #23

Merged
merged 3 commits into from
Oct 22, 2020

Conversation

osmszk
Copy link
Contributor

@osmszk osmszk commented Sep 17, 2020

WHY are these changes introduced?

I wanted to get associatedUserId after user authentification using koa-shopiy-auth, but I could not find it in the session.
A lot of Shopify App beginner-developers (including me) use this approach for user authentification, because Shopify introduces that way in the tutorial.

Also, this is same as this PR Shopify/quilt#1542 .

WHAT is this pull request doing?

Add associated user data and scope to the session.

This is particularly useful for determining the currently authenticated user in online access mode.

See also: Authenticate With OAuth Docs

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change

Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this change! Code-wise I see it's the same change as before so I will approve it.

@TheMallen, could I trouble you for your thoughts, as requested by @tanema in the original PR?

Copy link

@tanema tanema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@tanema tanema merged commit 4e79d5e into Shopify:master Oct 22, 2020
simonhaenisch added a commit to simonhaenisch/koa-shopify-auth that referenced this pull request Nov 5, 2020
@ulybu
Copy link

ulybu commented Nov 20, 2020

Hi guys, could one of you confirm this is not out yet?

Currently can't find user information on my session.
thanks!

@mkevinosullivan mkevinosullivan temporarily deployed to production December 1, 2020 18:12 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants