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

Function getOauthProfileFromOauthToken

src/services/oauth/getOauthProfile.ts:29–41  ·  view source on GitHub ↗
(
  accessToken: string,
  timeout = 10000,
)

Source from the content-addressed store, hash-verified

27}
28
29export async function getOauthProfileFromOauthToken(
30 accessToken: string,
31 timeout = 10000,
32): Promise<OAuthProfileResponse | undefined> {
33 try {
34 return await getIdentityClient().getOauthProfileFromOauthToken({
35 accessToken,
36 timeout,
37 })
38 } catch (error) {
39 logError(error as Error)
40 }
41}

Callers

nothing calls this directly

Calls 2

getIdentityClientFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected