From fbcc76231421eb4015736d7b93c40aa4954a6f62 Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 16 May 2024 00:19:10 +0200 Subject: [PATCH] :shower: GitHub::SCOPES_DELIMITER: use comma instead of space --- src/Providers/GitHub.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Providers/GitHub.php b/src/Providers/GitHub.php index 8f5abb5..05a78a2 100644 --- a/src/Providers/GitHub.php +++ b/src/Providers/GitHub.php @@ -26,6 +26,9 @@ class GitHub extends OAuth2Provider implements CSRFToken, TokenRefresh, UserInfo public const IDENTIFIER = 'GITHUB'; + // GitHub accepts both, comma and space, but the scopes in the token response are comma separated + public const SCOPES_DELIMITER = ','; + public const SCOPE_USER = 'user'; public const SCOPE_USER_EMAIL = 'user:email'; public const SCOPE_USER_FOLLOW = 'user:follow';