youtube icon indicating copy to clipboard operation
youtube copied to clipboard

An access token is required.

Open QadeerQT opened this issue 6 years ago • 3 comments

Hi Jeo!

I'm getting Token required error while already Enabled route option but still it's not working. screenshot from 2019-02-18 17-42-06

`<?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' => '/',

]

]; `

QadeerQT avatar Feb 18 '19 12:02 QadeerQT

Is your youtube_access_tokens table empty?

joedawson avatar May 13 '19 12:05 joedawson

@joedawson Same problem here. The table is empty. The client_id and secret are in the env file. Did I miss something?

gazben avatar Jul 25 '19 22:07 gazben

@joedawson false alert, sorry. Solution: https://stackoverflow.com/questions/13871982/unable-to-refresh-access-token-response-is-unauthorized-client

gazben avatar Jul 25 '19 23:07 gazben