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
gybia
gybia12mo 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_hacker12mo 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
Aidam12mo ago
The image is stored via a link to google, how can I store it directly in my db?
Want results from more Discord servers?
Add your server