How to send idToken to AppSync graphQL to authenticate query (OIDC)

Viewed 10

I am using App sync to create a graphQl API with OIDC to authenticate the users, When I test the oidc token in the aws query console it works fine but from my frontend it says Error: No current user

const todoData = await API.graphql( { query: createRoom, variables: { advertiser_name: 'test2' }, authMode: 'OPENID_CONNECT', authToken: 'MyToken', }

Which one would be the proper way to send this token using amplify client to fetch Appsync?

0 Answers
Related