File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3030 exit ();
3131 }
3232
33- echo $ accessToken ; // 53e20e750c89274d02b53927135fd664
33+ echo $ accessToken ->access_token ; // 53e20e750c89274d02b53927135fd664
34+ echo $ accessToken ->scope ; // read_products
3435}
Original file line number Diff line number Diff line change 4949 exit ();
5050 }
5151
52- echo $ accessToken ; // 53e20e750c89274d02b53927135fd664
52+ echo $ accessToken ->access_token ; // 53e20e750c89274d02b53927135fd664
53+ echo $ accessToken ->scope ; // read_products
5354}
5455
5556
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public static function accessToken()
5454 if (\Shopify \Shopify::strict ())
5555 {
5656 if ( is_null ( self ::$ nonce ) ) throw new \Exception ('No nonce was set. use Auth::setNonce($nonce) to set one ' );
57- if ( !self ::checkNonce ( $ nonce ) ) throw new \Exception ("Authentication nonce failed verification " );
57+ if ( !self ::checkNonce ( self :: $ nonce ) ) throw new \Exception ("Authentication nonce failed verification " );
5858 if ( !\Shopify \Shopify::validateHmac () ) throw new Exception \ApiException ("HMAC signature failed verification " );
5959 }
6060 return \Shopify \AccessToken::createFromCode ($ _GET ['code ' ]);
You can’t perform that action at this time.
0 commit comments