Skip to content

Commit

Permalink
Add hint for session start to usage (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkess authored Dec 10, 2024
1 parent cc69174 commit ed9ba77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $provider = new \League\OAuth2\Client\Provider\GenericProvider([
'urlResourceOwnerDetails' => 'https://service.example.com/resource'
]);

// A session is required to store some session data for later usage
session_start();

// If we don't have an authorization code then get one
if (!isset($_GET['code'])) {

Expand Down

0 comments on commit ed9ba77

Please sign in to comment.