()
| 118 | } |
| 119 | |
| 120 | func (f *fakeGitHub) recordedGrants() []string { |
| 121 | f.mu.Lock() |
| 122 | defer f.mu.Unlock() |
| 123 | return append([]string(nil), f.grants...) |
| 124 | } |
| 125 | |
| 126 | func writeToken(w http.ResponseWriter, access, refresh string, expiresIn int) { |
| 127 | body := map[string]any{ |
no outgoing calls
no test coverage detected