NextAuth google provider sometimes doesn't fetch image

When I open the link from the Database the image displays as normal, the Image tag also get rendered however the content appears only about on every 10th attempt, I didn't modify my nextauth file at all
3 Replies
Gabriel
Gabriel15mo ago
If the user image url is safely stored in the database, then it has nothing to do with NextAuth. I get thi error sometimes too Might be related to google servers?
Anonymous_hacker
Anonymous_hacker15mo ago
Add remote pattern in next.config.js and Where ever you using the url from Google add
referrerPolicy='no-referrer'
referrerPolicy='no-referrer'
In Image components of next/image.
Aidam
AidamOP15mo ago
The image is stored via a link to google, how can I store it directly in my db?

Did you find this page helpful?