Abhi Patel

Results 33 comments of Abhi Patel

``` export const serverClient = generateServerClientUsingCookies({ config: awsConfig, cookies, }) as V6ClientSSRCookies; ``` fixed for me with a simple addition of the type here. not sure if it really changes...

@svidgen This is just at an IDE level, doesn't really cause any build issues. To fix the red underlines, I just explicitly set the types to `V6ClientSSRCookies` at every level,...

bumping on this issue, @nadetastic would you know of any workaround in the meantime to allow idToken use from server side graphql API calls?

so far, my workaround has been: ```js const idToken = cookies() .getAll() .filter( cookie => cookie.name.includes("CognitoIdentityServiceProvider") && cookie.name.includes("idToken") )?.[0]?.value; export const serverClient = generateServerClientUsingCookies({ config: awsConfig, cookies, ...(idToken ? {...

So my previous workaround didn't end up working, but I was able to just use a patch file to just switch the token thats passed from the graphql call to...

Hi @nadetastic, thanks for the reply! Doing it this way also works, but I am now running into the issue of TooManyRequestsException (I assume from fetchAuthSession). Since this token is...

@nadetastic this is a p big blocking issue since it leads to 404s on certain pages. any workaround you would know of? Thanks in advance :)

@willianrod thanks for the idea, did something very similar! ``` const getServerAuth = async (): Promise => { const cookieStore = cookies(); let idToken = cookieStore .getAll() .filter( cookie =>...

hey @chrisbonifacio @willianrod, running into an interesting issue, even after setting up the propsed solution above. From what I can see, there are still call made to Congito IDP each...