Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need getAuthorizationHeaders implemented? #4

Open
matthabermehl opened this issue Jul 27, 2017 · 1 comment
Open

need getAuthorizationHeaders implemented? #4

matthabermehl opened this issue Jul 27, 2017 · 1 comment

Comments

@matthabermehl
Copy link

In the League's AbstractProvider class, it says that providers must overload this method because there are no defaults provided. This is the code in the League's src:
protected function getAuthorizationHeaders($token = null) { return []; }

This is going to need to be something like:
protected function getAuthorizationHeaders($token = null){ return array("Authorization"=>"Bearer " . $token); }

Though I haven't tested it yet.

@permiakov
Copy link
Owner

Thanks @matthabermehl , i somehow missed the start of activity here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants