chrisnharvey / oauth

Authorize users in your application with multiple OAuth 1.0 and OAuth 2.0 providers.
12 stars 4 forks source link

Update API #6

Open chrisnharvey opened 11 years ago

chrisnharvey commented 11 years ago

The current API is not as elegant as it could be.

I am currently devising a way to make this package easier to work with and to use closures less.

I have already added a method to make this work correctly with Laravel as writing to session does not occur until the end of the request. So using:

Session::put('token', $token);

header("Location: {$url}");
exit;

does not work because we are prematurely exiting the application which means the session is not written.