ValidateSession validates the AccessToken
(ctx context.Context, s *sessions.SessionState)
| 149 | |
| 150 | // ValidateSession validates the AccessToken |
| 151 | func (p *GitHubProvider) ValidateSession(ctx context.Context, s *sessions.SessionState) bool { |
| 152 | return validateToken(ctx, p, s.AccessToken, makeGitHubHeader(s.AccessToken)) |
| 153 | } |
| 154 | |
| 155 | func (p *GitHubProvider) hasOrg(s *sessions.SessionState) error { |
| 156 | // https://developer.github.com/v3/orgs/#list-your-organizations |
nothing calls this directly
no test coverage detected