From 288551565d41d076246b0a989694fbcd3d471706 Mon Sep 17 00:00:00 2001 From: Lindsay Snider Date: Tue, 18 Jan 2022 18:14:16 -0500 Subject: [PATCH] use the scopeSeparator --- src/Two/AbstractProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Two/AbstractProvider.php b/src/Two/AbstractProvider.php index 9a22d81b..e928b4f1 100644 --- a/src/Two/AbstractProvider.php +++ b/src/Two/AbstractProvider.php @@ -245,7 +245,7 @@ public function user() return $this->user->setToken($token) ->setRefreshToken(Arr::get($response, 'refresh_token')) ->setExpiresIn(Arr::get($response, 'expires_in')) - ->setApprovedScopes(explode(' ', Arr::get($response, 'scope', ''))); + ->setApprovedScopes(explode($this->scopeSeparator, Arr::get($response, 'scope', ''))); } /**