From 1075b5f2e9c2fe1b5d5bc87395c6e643d51be86a Mon Sep 17 00:00:00 2001 From: Valentin Date: Mon, 17 Apr 2023 19:55:17 -0400 Subject: [PATCH] Add Google grant --- src/Grant/CustomGrantFactory.php | 2 ++ src/Grant/Google.php | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/Grant/Google.php diff --git a/src/Grant/CustomGrantFactory.php b/src/Grant/CustomGrantFactory.php index 07ffc90..1501938 100644 --- a/src/Grant/CustomGrantFactory.php +++ b/src/Grant/CustomGrantFactory.php @@ -36,6 +36,8 @@ protected function registerDefaultGrant($name) if ($name == 'facebook') { $class = 'KangarooRewards\\OAuth2\\Client\\Grant\\' . $class; + } elseif ($name == 'google') { + $class = 'KangarooRewards\\OAuth2\\Client\\Grant\\' . $class; } else { $class = 'League\\OAuth2\\Client\\Grant\\' . $class; } diff --git a/src/Grant/Google.php b/src/Grant/Google.php new file mode 100644 index 0000000..01474b5 --- /dev/null +++ b/src/Grant/Google.php @@ -0,0 +1,39 @@ +