Skip to content

Commit

Permalink
Update README.md (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: jamalla2 <[email protected]>
  • Loading branch information
salkhwlani and jamalla2 authored Nov 16, 2021
1 parent d6f4c09 commit e74ccdb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ try {
//
// ## Refresh Token
//
// You should store the refresh token in somewhere in your system because the access token expired after 14 days
// so you can use the refresh token after that to generate an new access token without ask any access from the merchant
// You should store the refresh token somewhere in your system because the access token expired after 14 days
// so you can use the refresh token after that to generate a new access token without asking any access from the merchant
//
// $token = $provider->getAccessToken(new RefreshToken(), ['refresh_token' => $token->getRefreshToken()]);
//
Expand All @@ -90,8 +90,8 @@ try {
//
// ## Expire date
//
// This help you to know when the access token will expired
// so before that date you should generate a new access token using the refresh token
// This helps you to know when the access token will be expired
// so before that date, you should generate a new access token using the refresh token
echo 'Expire Date : '.$token->getExpires()."<br>";

//
Expand Down Expand Up @@ -137,7 +137,7 @@ try {
//
// 🥳
//
// You can now save the access token and refresh token in your database
// You can now save the access token and refresh the token in your database
// with the merchant details and redirect him again to Salla dashboard (https://s.salla.sa/apps)


Expand Down Expand Up @@ -167,7 +167,7 @@ try {

## Refreshing a Token

Refresh tokens are only provided to applications which request offline access. You can specify offline access by passing the scope option in your getAuthorizationUrl() request.
Refresh tokens are only provided to applications that request offline access. You can specify offline access by passing the scope option in your getAuthorizationUrl() request.

```php
use Salla\OAuth2\Client\Provider\Salla;
Expand All @@ -191,7 +191,7 @@ composer test

## Contributing

Contributions are what makes the open-source community such an amazing place to learn, inspire, and create.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create.
Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request.
Expand All @@ -207,7 +207,7 @@ You can also simply open an issue with the tag "enhancement". Don't forget to gi

## Security

If you discover any securitysrelated issues, please email [email protected] instead of using the issue tracker.
If you discover any securitys-related issues, please email [email protected] instead of using the issue tracker.

## Credits

Expand Down

0 comments on commit e74ccdb

Please sign in to comment.