({ requestBody, timeout })
| 109 | }, |
| 110 | |
| 111 | async refreshOAuthToken({ requestBody, timeout }) { |
| 112 | const response = await axios.post<OAuthTokenExchangeResponse>( |
| 113 | getOauthTokenUrl(), |
| 114 | requestBody, |
| 115 | { |
| 116 | headers: { 'Content-Type': 'application/json' }, |
| 117 | timeout, |
| 118 | }, |
| 119 | ) |
| 120 | return response.data |
| 121 | }, |
| 122 | |
| 123 | async fetchUserRoles({ accessToken }) { |
| 124 | const endpoint = buildNoumenaPlatformUrl('/api/oauth/ncode/roles') |
nothing calls this directly
no test coverage detected