youtube
youtube copied to clipboard
An access token is required.
Hi Jeo!
I'm getting Token required error while already Enabled route option but still it's not working.
`<?php
return [
/**
* Client ID.
*/
'client_id' => env('GOOGLE_CLIENT_ID', null),
/**
* Client Secret.
*/
'client_secret' => env('GOOGLE_CLIENT_SECRET', null),
/**
* Scopes.
*/
'scopes' => [
'https://www.googleapis.com/auth/youtube',
'https://www.googleapis.com/auth/youtube.upload',
'https://www.googleapis.com/auth/youtube.readonly'
],
/**
* Route URI's
*/
'routes' => [
/**
* Determine if the Routes should be disabled.
* Note: We recommend this to be set to "false" immediately after authentication.
*/
'enabled' => true,
/**
* The prefix for the below URI's
*/
'prefix' => 'youtube',
/**
* Redirect URI
*/
'redirect_uri' => 'callback',
/**
* The autentication URI
*/
'authentication_uri' => 'auth',
/**
* The redirect back URI
*/
'redirect_back_uri' => '/',
]
]; `
Is your youtube_access_tokens
table empty?
@joedawson Same problem here. The table is empty. The client_id and secret are in the env file. Did I miss something?
@joedawson false alert, sorry. Solution: https://stackoverflow.com/questions/13871982/unable-to-refresh-access-token-response-is-unauthorized-client