gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

How can we use permanent token once app is authenticated? #585

Closed skygaurav closed 4 years ago

skygaurav commented 4 years ago

@osiset For bug reporting only! If you're posting a feature request or discussion, please ignore.

Expected Behavior

I dont want app to authenticate again and again. I have restored offline token in my db now I want to access api. How can I do tha?

Current Behavior

Please describe the current behavior?

Failure Information

Please help provide information about the failure if this is a bug.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Step 1
  2. Step 2
  3. ...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here.

gnikyt commented 4 years ago

Doesn't work that way. If you're unauthenticated (no cookies or session) you're sent through Shopify oauth process, the result is a new token. This also helps when you update access scopes, as the shop will be asked to confirm the changes.

The token changing shouldn't affect anything you're doing. If you're doing background work with said tokens it will still work once your job accesses the token and inits the API for the shop.

skygaurav commented 4 years ago

Thanks for reply. May I know how to configure webhooks? I want to know the process.

Kyon147 commented 4 years ago

Please read the wiki as most of it is all in there. https://github.com/osiset/laravel-shopify/wiki/Creating-Webhooks

skygaurav commented 4 years ago

After doing above I am not able to get the data from webhook. I have created webhook for customers/update, customers/delete, customers/create. Please help me

gnikyt commented 4 years ago

@skygaurav This is not a help forum unfortunately. This is for issues only. Github has not enabled Discussion boards for all projects yet as its still in beta.

My guess is your webhook installation job has not fired. Try logging into the app via incognito to trigger the full flow again. You may not also have a queue worker running. Theres many things to look for.