-
Notifications
You must be signed in to change notification settings - Fork 503
Add Lightspeed Reatail provider #1373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
src/LightspeedRetail/Provider.php
Outdated
| { | ||
| const IDENTIFIER = 'LIGHTSPEEDRETAIL'; | ||
|
|
||
| protected $scopes = ['']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just leave this as an empty array please?
src/LightspeedRetail/Provider.php
Outdated
| )); | ||
|
|
||
| // Store domain prefix with the user | ||
| $user->domainPrefix = $this->domainPrefix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be set on the raw data right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or, create a custom user object with this prop.
| protected function getTokenUrl() | ||
| { | ||
| // We must get the domain_prefix from the callback for the initial token request | ||
| $domainPrefix = request()->input('domain_prefix', $this->domainPrefix); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to get this from the url? example.com/# results in
curl 'https://example.com/#.retail.lightspeed.app/api/1.0/token'
No description provided.