(sessionId string)
| 646 | } |
| 647 | |
| 648 | func (auth *AuthService) GetOAuthURL(sessionId string) (string, error) { |
| 649 | session, err := auth.GetOAuthPendingSession(sessionId) |
| 650 | |
| 651 | if err != nil { |
| 652 | return "", err |
| 653 | } |
| 654 | |
| 655 | return (*session.Service).GetAuthURL(session.State, session.Verifier), nil |
| 656 | } |
| 657 | |
| 658 | func (auth *AuthService) GetOAuthToken(sessionId string, code string) (*oauth2.Token, error) { |
| 659 | session, err := auth.GetOAuthPendingSession(sessionId) |
no test coverage detected