Skip to content

Commit

Permalink
🚿 GitHub::SCOPES_DELIMITER: use comma instead of space
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed May 15, 2024
1 parent ee7a448 commit fbcc762
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Providers/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fbcc762

Please sign in to comment.