MCPcopy Create free account
hub / github.com/Noumena-Network/code / refreshOAuthToken

Function refreshOAuthToken

src/services/oauth/identityClient.ts:111–121  ·  view source on GitHub ↗
({ requestBody, timeout })

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 1

getOauthTokenUrlFunction · 0.85

Tested by

no test coverage detected