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

Automatically determine session type from token response#628

Merged
paulomarg merged 2 commits intomainfrom
auto_determine_callback_session_type
Dec 8, 2022
Merged

Automatically determine session type from token response#628
paulomarg merged 2 commits intomainfrom
auto_determine_callback_session_type

Conversation

@paulomarg
Copy link
Copy Markdown
Contributor

@paulomarg paulomarg commented Dec 7, 2022

WHY are these changes introduced?

Fixes https://github.com/Shopify/first-party-library-planning/issues/507

Currently, the auth.callback function needs to be told whether or not it should expect an online or offline token, but that information is baked into the response itself.

WHAT is this pull request doing?

Deprecating the auth.callback isOnline parameter, since it is not necessary, and determining the session type from the token request response.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

@paulomarg paulomarg requested a review from a team December 7, 2022 21:39
@paulomarg paulomarg force-pushed the auto_determine_callback_session_type branch from dd8fe8b to 162b510 Compare December 7, 2022 21:41
Copy link
Copy Markdown
Contributor

@cquemin cquemin left a comment

Choose a reason for hiding this comment

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

LGTM

@paulomarg paulomarg merged commit 63885c7 into main Dec 8, 2022
@paulomarg paulomarg deleted the auto_determine_callback_session_type branch December 8, 2022 14:09
@shopify-shipit shopify-shipit Bot temporarily deployed to production December 8, 2022 20:09 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.

2 participants