opentdf / web-sdk

OpenTDF JavaScript SDK
BSD 3-Clause Clear License
0 stars 1 forks source link

OpenTDF.AuthProviders.externalAuthProvider may have an issue.... #368

Open timdumm opened 1 month ago

timdumm commented 1 month ago

i think OpenTDF.AuthProviders.externalAuthProvider may have an issue.... i get: {"error":"invalid_token","error_description":"Invalid token type, must be access token"} but im pretty sure the token sent to the function is an access token

was able to get OpenTDF.AuthProviders.refreshAuthProvider to work.

however, seems like the function signature changed on the refreshAuthProvider method?.. the 'exchange' parameter seen here: https://github.com/virtru-corp/dsp-cop/blob/f647d9f16db21293a5125daeb87661aecd7ba57b/ui/src/hooks/useTdf.tsx#L18 at least, it wasnt in my webpacked bundle, but maybe im on an outdated branch.