Skip to content

Commit 9eb85fb

Browse files
committed
oAth documentation updated
1 parent 4cfda8e commit 9eb85fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ $folder->idle(function($message){
178178
```
179179

180180
#### oAuth
181-
If you are using google mail or something similar, you might have to use oauth instead:
181+
Please take a look at [the wiki article](https://github.com/Webklex/php-imap/wiki/Google-Mail---Gmail) for gmail / google mail setup.
182182

183+
Basic oAuth example:
183184
```php
184185
/** @var \Webklex\PHPIMAP\Client $client */
185186
$client = \Webklex\IMAP\Facades\Client::make([
@@ -188,7 +189,7 @@ $client = \Webklex\IMAP\Facades\Client::make([
188189
'encryption' => 'ssl',
189190
'validate_cert' => true,
190191
'username' => '[email protected]',
191-
'password' => 'password',
192+
'password' => 'ACCESS-TOKEN',
192193
'authentication' => "oauth",
193194
'protocol' => 'imap'
194195
]);

0 commit comments

Comments
 (0)