-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Hi Team,
I'm getting "code undefined in $_GET" this issue when I try to create access token
$client = Onedrive::client(env('ONEDRIVE_CLIENT_ID'));
// Gets a log in URL with sufficient privileges from the OneDrive API.
$url = $client->getLogInUrl([
'files.read',
'files.read.all',
'files.readwrite',
'files.readwrite.all',
'offline_access',
], URL::to('/') . env('ONEDRIVE_REDIRECT_URI'));
// ], env('ONEDRIVE_REDIRECT_URI'));
session_start();
// Persist the OneDrive client' state for next API requests.
$_SESSION['onedrive.client.state'] = $client->getState();
return redirect($url);
Please help to solve this issue.
Thanks
Kishan
bilel
Metadata
Metadata
Assignees
Labels
No labels
