You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run `$auth->request()` you will first be redirected to the provider. You will need to grant or deny access to your personal information and then you will be redirected back to the page where you came from.
84
+
When you run `$auth->request('provider')` you will first be redirected to the provider. You will need to grant or deny access to your personal information and then you will be redirected back to the page where you came from.
85
85
86
86
**IMPORTANT:** You need to set your page as a valid callback URL in your App!
87
87
@@ -106,7 +106,7 @@ If access is granted, `$details` will be an instance of `ExtractorInterface` fro
106
106
107
107
### Redirect the users...
108
108
109
-
When you get redirected back to your site after a succesfull request, you will notice that there is a token in the URL. This token can't be used twice, so if you would refresh the page an exception would be thrown...
109
+
When you get redirected back to your site after a successful request, you will notice that there is a token in the URL. This token can't be used twice, so if you would refresh the page an exception would be thrown...
110
110
111
111
Therefor, it might be wise to redirect your users somewhere after you're done.
112
112
@@ -150,7 +150,6 @@ The handle needs to match the ones that are used in [php-oauth's examples](https
150
150
151
151
Just save your class somewhere, make sure it's being (auto)loaded and then reference it in your configuration array like so:
152
152
153
-
154
153
'example' => [
155
154
'key' => '123',
156
155
'secret' => '456',
@@ -160,7 +159,6 @@ Just save your class somewhere, make sure it's being (auto)loaded and then refer
160
159
'provider_class' => 'ExampleProvider', //=> Your custom provider
161
160
],
162
161
163
-
164
162
## Examples
165
163
166
164
Take a look at [examples](https://github.com/codezero-be/oauth/blob/master/examples).
@@ -169,6 +167,7 @@ Take a look at [examples](https://github.com/codezero-be/oauth/blob/master/examp
0 commit comments