Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

🐛 fix auth issue with invalid accesstoken #844

Merged
merged 1 commit into from
Aug 13, 2019
Merged

Conversation

katiedavis
Copy link
Contributor

@katiedavis katiedavis commented Aug 13, 2019

Description

Fixes #727

Type of change

In the koa-shopify-auth package, users were having issues reinstalling their apps via the partner dashboard. This PR adds a call to the admin API (I tried to find the 'cheapest' call) to check the validity of the access token. This solve the issue of users not being able to reinstall the app on their stores.

I'm looking for feedback on this. If anyone knows a better way of checking if an access token is valid please let me know!

  • koa-shopify-auth Patch: Bug/ Documentation fix (non-breaking change which fixes an issue or adds documentation)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have prefixed my pull request title with the corresponding emoji from this guide

Copy link
Contributor

@marutypes marutypes left a comment

Choose a reason for hiding this comment

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

Few nits, I still feel weird about this approach but am not too sure what alternatives we have if core doesn't provide a hook to delete the token on uninstall / logout.

:/

@katiedavis katiedavis force-pushed the koa-auth-bug branch 4 times, most recently from e567441 to 2360749 Compare August 13, 2019 20:38
@katiedavis katiedavis merged commit a49af67 into master Aug 13, 2019
@katiedavis katiedavis deleted the koa-auth-bug branch August 13, 2019 21:40
@katiedavis katiedavis temporarily deployed to production August 13, 2019 22:25 Inactive
@marutypes marutypes temporarily deployed to gem August 15, 2019 18:30 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.

Koa Session Cookie Blocking Reinstallation
5 participants